Missing thumbnail for YouTube videos
submitted by
When I post a YouTube link, no thumbnail is generated with the post.
I see this issue on Codeberg as #269. It was created in 2024, and closed the same year. But was anything ever changed relating to video thumbnails in Piefed?
ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86
Share on Mastodon
Can you give me a link to an example? And/or a screenshot?
Here’s one I just posted in my community.
And here’s a screenshot:
Ah I see, you have compact mode on.
I’ll make a codeberg issue for that. Thanks!
https://codeberg.org/rimu/pyfedi/issues/1895
Thanks Rimu!
You seem to be trying to insert a youtube video as an image.
It’d be good if, when a youtube link is on it’s own (as below), it would turn into a clickable embedded video. But we don’t have that functionality at the moment. Some 3rd party client apps might.
https://m.youtube.com/watch?v=WLDE9LrGpNk&pp=iggUQAFKEFp5dlV4RnVlSWJmOHFjSzM%3D&ra=m
It works in Blorp 🙂
Turns out the issue is with compact mode. Whether I’m on Blorp or just default Piefed, thumbnails don’t show up on compact mode.
But the good thing is that Remu has opened a Codeberg issue. So it’ll be fixed sometime in the future. :)
What’s Blorp?
!blorp@lemmy.zip
oh look my instance even has one. Thanks
We’ve had similar issue some time ago, it was due to something in ngnix. I’ll look around, maybe I have some notes about that somewhere
EDIT: pass these to your instance admins
https://web.dev/articles/strict-csp
https://stackoverflow.com/questions/64808475/csp-for-embedding-youtube-video
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/default-src
Piefed/flask set it’s own
noncesso no need to add those in nginxIt turns out the issue has something to do with Compact mode on Piefed. Rimu opened a Codeberg issue.
https://codeberg.org/rimu/pyfedi/issues/1895