Email or username:

Password:

Forgot your password?
Eugen Rochko

There seems to be a bug with YouTube where they serve a http URL in <link> tags for their OEmbed endpoint, but they do not actually allow requests to the http URL, which is why YouTube previews currently do not work.

8 comments
Acesabe

@Gargron a feature rather than bug no doubt! Playing cat and mouse with the API to keep 3rd party apps from using their content without dev keys (or rather they just changed their API and we only find out when things break!)

BelindaJ

@Gargron
Not a bad thing. There is a life after YouTube. Alternatives

Maro

@Gargron That's why sth I posted yesterday looked broken hmm this is nice to know

Eugen Rochko

So, how are we going to fix it without hardcoding special treatment for YouTube? Maybe always trying OEmbed endpoint with https would be a safe assumption nowadays? Not sure if there are any OEmbed providers that don't offer https.

Dag Ågren ↙︎↙︎↙︎

@Gargron Seems to me like special-casing it for Youtube would be the cleaner option. It's only them misbehaving, and hopefully it will eventually be fixed and the special case can be removed again.

Anthony Sorace

@Gargron If you try the http->https method, please make it a fallback only if the *actually stated* url fails. If you do that, I think that’s better than special casing for YouTube.

Alien (A23P)
@Gargron yet youtube embeds do work on some platforms still.....
=P
rws

@Gargron YouTube previews work just fine now on mastodon.social. Thanks for sorting it out.
It'd be amazing to have an option to "regenerate" for selected past posts instead of "deleting & re-drafting" just to get the preview image

Go Up