fix(app): blur mature embed images and videos (#1919)

This commit is contained in:
Hampus
2026-08-24 12:45:36 +02:00
committed by GitHub
parent 6656628bba
commit 98d10215d6
@@ -233,6 +233,7 @@ export const Embed: FC<EmbedProps> = observer(({embed, message, embedIndex, cont
naturalHeight={thumbnail.height}
placeholder={thumbnail.placeholder}
alt={thumbnail.description ?? embed.description ?? undefined}
nsfw={isMediaMatureContent(thumbnail)}
channelId={message.channelId}
messageId={message.id}
message={message}
@@ -256,6 +257,7 @@ export const Embed: FC<EmbedProps> = observer(({embed, message, embedIndex, cont
naturalHeight={embed.video.height}
placeholder={thumbnail.placeholder}
alt={embed.video.description ?? thumbnail.description ?? embed.description ?? undefined}
nsfw={isMediaMatureContent(embed.video) || isMediaMatureContent(thumbnail)}
channelId={message.channelId}
messageId={message.id}
message={message}