this post was submitted on 18 Jun 2023
5 points (100.0% liked)

lemmy.wtf meta

171 readers
1 users here now

Anything about the lemmy.wtf instance and its moderation.

For discussion about the Lemmy software project, go to c/lemmy.

founded 2 years ago
MODERATORS
 

Does anybody know why and when thumbnails for YouTube videos are shown or not? It appears to depend on the lemmy instance the posts are served from:

Without Thumbnails

With Thumbnails

Update: It's not only YT thumbnails which aren't shown. This is your post about the free 24 slot bag as shown on lemmy.wtf (without thumbnail), lemmy.world (without thumbnail) and feddit.de (with thumbnail):

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 years ago (1 children)

I just use the settings as it is shown in the installation guide for Docker: https://join-lemmy.org/docs/en/administration/install_docker.html

[–] necropola 3 points 2 years ago* (last edited 2 years ago) (1 children)

OK. Looks like the CSP headers are the same on working and not working instances.

What I found surprising is that chrome loads the thumbnail without accessing the actual YT URL (contrary to what I expected) from the "pictrs" server of the instance serving the post. Which means that the thumbnail gets only extracted once and is then stored along with the post.

[–] necropola 3 points 2 years ago* (last edited 2 years ago)

Brainstorming

  • Thumbnail extraction definitely happens in the backend.
  • Thumbnails do neither work on lemmy.wtf nor lemmy.world but work on feddit.de
    • Does feddit.de extract the missing thumbnail when creating/updating the post? ➡ Yes, I think so
    • Or does it expect the thumbnail to be transmitted alongside the post? ➡ No, I don't think so
  • lemmy.world does not use cloudflare (I think) but they are also (like lemmy.wtf) using docker (I think)

Also Not Working on lemmy.world

But does on feddit.de

It's not only YT thumbnails which aren't shown. This is your post about the free 24 slot bag as shown on lemmy.wtf (no thumbnail), lemmy.world (no thumbnail) and feddit.de (with thumbnail):