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

Improve OEmbed and OpenGraph handling #8669

Merged
merged 1 commit into from
Sep 10, 2018

Conversation

ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Sep 10, 2018

This fixes #8062 by handling relative URLs in OpenGraph and OEmbed.
It also prefers OpenGraph to OEmbed as the former relies on less HTTP queries, but I don't know if there are reasons to prefer OEmbed anyway when both are available.

@Gargron
Copy link
Member

Gargron commented Sep 10, 2018

Preferring OpenGraph to OEmbed

This is very likely a regression. Do YouTube videos still embed? Vimeo? You basically begin to rely on them having the "twitter:player" tag

@ClearlyClaire
Copy link
Contributor Author

@Gargron both seem to still work, but yeah, looking at the code, it might make sense to add a few checks before preferring OpenGraph to OEmbed…

@ClearlyClaire
Copy link
Contributor Author

Dropped the OpenGraph preference thing.

@Gargron Gargron merged commit bd9e47e into mastodon:master Sep 10, 2018
kyori19 pushed a commit to kyori19/mastodon that referenced this pull request Sep 20, 2018
koppepan1204 pushed a commit to koppepan1204/mastodon that referenced this pull request Oct 10, 2018
koppepan1204 pushed a commit to koppepan1204/mastodon that referenced this pull request Oct 12, 2018
@ClearlyClaire ClearlyClaire deleted the fixes/oembed-relative-urls branch March 14, 2019 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants