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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I also found this
https://github.com/LemmyNet/lemmy-ui/issues/20
There is an environment variable
LEMMY_UI_DISABLE_CSP
(default : false) to configurelemmy-ui
. Do you set this on your instance or do you set aContent-Security-Policxy
Header somewhere in your webserver/nginx config?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
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.
Brainstorming
iframely
➡ https://github.com/LemmyNet/lemmy/pull/1706fetch_site_metadata
➡ https://github.com/LemmyNet/lemmy/blob/main/crates/api_common/src/request.rsog:*
) meta tags from a linked HTML document whenever a post is created or updatedlemmy.wtf
norlemmy.world
but work onfeddit.de
feddit.de
extract the missing thumbnail when creating/updating the post? ➡ Yes, I think solemmy.world
does not use cloudflare (I think) but they are also (likelemmy.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) andfeddit.de
(with thumbnail):