Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't check for success oEmbed status #152

Merged
merged 4 commits into from
May 25, 2021

Conversation

KararTY
Copy link
Contributor

@KararTY KararTY commented May 25, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

There's currently an issue where no oEmbeds will show up because we require status code to be 200 but oEmbed library used doesn't return status code unless it's > 200:
https://github.com/dyatlov/go-oembed/blob/a57c85b3b37c0375d869f298387d9bcf5bb437c7/oembed/oembed.go#L71

This PR removes the check and allows oEmbed to work properly

@ALazyMeme
Copy link
Contributor

Works perfectly 👍🏻

@pajlada pajlada merged commit 80e1ce0 into Chatterino:master May 25, 2021
@KararTY KararTY deleted the fix-oembed branch May 25, 2021 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants