@[email protected] Youtube recently made a change and stopped serving the video pages when Mastodon (or other software, AFAIK) is requesting it, probably using some fingerprinting. Mastodon builds a link preview based on the page that is served, hence what you are seeing (in German because your server is probably located in a datacenter in Germany, or Youtube thinks it should see german language). We tried to get in touch with people at Youtube, but no success so far.
@rmondello @caseyliss @renchap
It also might deal from boosts increasing requests on an URL, it can almost be did like default at times.
@rmondello The short URL youtu-dot-be doesn’t provide OpenGraph data, so… no previews.
☝🏻 This little detail came across my feed recently and now I can’t find it to credit the original author. 🙃
The advice from that post was to avoid using YouTube’s share/embed UI and instead copy the video page’s URL from your browser’s address bar.
…and, a relevant reply that Ricky’s boosted:
@[email protected] Youtube recently made a change and stopped serving the video pages when Mastodon (or other software, AFAIK) is requesting it, probably using some fingerprinting. Mastodon builds a link preview based on the page that is served, hence what you are seeing (in German because your server is probably located in a datacenter in Germany, or Youtube thinks it should see german language). We tried to get in touch with people at Youtube, but no success so far.
@rmondello It’s a known issue with Mastodon, not Ivory particularly. Has to do with preview card generation. A workaround seems to be to not use the shortened youtu.be url in your posts. Let’s test it!
Are youtube links no longer working on Mastodon as cards? The last couple I've posted are just a generic youtube small card that just opens a new blank browser window, and stalls. #youtube #mastodon #fediverse
@rmondello i’ve been getting this for all youtube links on my server for a few months now, not just the link-shortened ones. best as i can tell, the server itself isn’t seeing a link preview so it can only serve this butchered version
i was even able to reproduce it by just using curl while ssh’d into the server, so it’s not even mastodon’s fault nor any client 🙃
Practically everyone. Has something to do with the URL server your particular server is using. For dot social, German and French are common.
(Google tracking or avoiding such related?)
If you are posting a YouTube link, provide context in your toot, you can’t rely on the url or thumbnail providing a title.
@Sempf @bretthaines it seems like YouTube in particular changes something periodically that causes this. In any event, there is a GitHub issue for this problem https://github.com/mastodon/mastodon/issues/30365