mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(api): drop NSFW classification for emojis and stickers (#2462)
This commit is contained in:
1 parent
1e6c332eae
commit
51cb750502
191 files changed
+18464
-19351
No files matched your search
@@ -461,8 +461,7 @@ const StickerItem = observer(({sticker, message, sourceChannel, handleDelete}: S
|
||||
});
|
||||
const stickerRecord = Sticker.getStickerById(sticker.id);
|
||||
const guild = stickerRecord?.guildId ? Guilds.getGuild(stickerRecord.guildId) : null;
|
||||
const isMature = !!stickerRecord?.nsfw || !!sticker.nsfw;
|
||||
const {shouldBlur, shouldBlock, canReveal, reveal} = useMatureMedia(isMature, message.channelId);
|
||||
const {shouldBlur, shouldBlock, canReveal, reveal} = useMatureMedia(false, message.channelId);
|
||||
const tooltipContent = () => (
|
||||
<div className={styles.stickerTooltip} data-flx="channel.message-attachments.tooltip-content.sticker-tooltip">
|
||||
<span className={styles.stickerName} data-flx="channel.message-attachments.tooltip-content.sticker-name">
|
||||
@@ -502,7 +501,6 @@ const StickerItem = observer(({sticker, message, sourceChannel, handleDelete}: S
|
||||
tags: [],
|
||||
url: stickerUrl,
|
||||
animated: sticker.animated,
|
||||
nsfw: Boolean(sticker.nsfw),
|
||||
user: undefined,
|
||||
};
|
||||
ContextMenuCommands.openFromEvent(e, ({onClose}) => (
|
||||
|
||||
@@ -136,11 +136,7 @@ const MessageReactionItem = observer(
|
||||
};
|
||||
const emojiName = getEmojiName(reaction.emoji);
|
||||
const emojiUrl = useEmojiURL({emoji: reaction.emoji, isHovering: isHovering || tooltipHovering});
|
||||
const isMature = !!emojiRecord?.nsfw;
|
||||
const {shouldBlur: reactionShouldBlur, shouldBlock: reactionShouldBlock} = useMatureMedia(
|
||||
isMature,
|
||||
message.channelId,
|
||||
);
|
||||
const {shouldBlur: reactionShouldBlur, shouldBlock: reactionShouldBlock} = useMatureMedia(false, message.channelId);
|
||||
const variants = {
|
||||
up: {y: -20, opacity: 0},
|
||||
down: {y: 20, opacity: 0},
|
||||
|
||||
Reference in new issue
Block a user