this post was submitted on 06 Aug 2022
0 points (NaN% liked)

Lemmy

12499 readers
50 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

I can't found it how can I post embedded videos or posts from social media sites, like on Reddit or other similar sites.

top 8 comments
sorted by: hot top controversial new old
[–] wintermute@feddit.de 0 points 2 years ago (1 children)
[–] Fissionami@lemmy.ml 0 points 2 years ago (2 children)
[–] sexy_peach@feddit.de 0 points 2 years ago* (last edited 2 years ago)

content security policy

[–] alexlehm@feddit.de 0 points 2 years ago (1 children)

Content Security Policy, this defines which domains may be used from the main site domain, this blocks different kinds of attacks but has the effect that random domains cannot be embedded

[–] Fissionami@lemmy.ml 0 points 2 years ago (1 children)

So it can be solved by whitelisting known safe domains such as catbox.moe who provides sharing media and such!

[–] alexlehm@feddit.de 0 points 2 years ago* (last edited 2 years ago) (1 children)

that would be possible, it would require "trusted" embed sources, e.g. youtube or catbox or whatever. i know of another reddit type clone site which has their own official video host and pic host that allow embed but they block others

[–] alexlehm@feddit.de 0 points 2 years ago

this would have to be the same on all instances for federated articles to work, so that would be a problem

[–] nachtigall@feddit.de 0 points 2 years ago

Do the videos show up for you here? (For me it's only unsupported media type but in principle it seems like markdown could work too)