mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-08 03:32:27 +09:00
fix(app): blur mature embed images and videos (#1919)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user