A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): blur mature embed images and videos (#1919)
Hampus98d10215d60a
diff --git a/fluxer_app/src/features/channel/components/embeds/ChannelEmbed.tsx b/fluxer_app/src/features/channel/components/embeds/ChannelEmbed.tsxindex e03ab932d..07772a6b0 100644--- a/fluxer_app/src/features/channel/components/embeds/ChannelEmbed.tsx+++ b/fluxer_app/src/features/channel/components/embeds/ChannelEmbed.tsx@@ -233,6 +233,7 @@ export const Embed: FC<EmbedProps> = observer(({embed, message, embedIndex, contnaturalHeight={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, contnaturalHeight={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}