From 22c94fb5eec1df1c27f354991a8a32f9722cc8f4 Mon Sep 17 00:00:00 2001 From: Suffocate <70031311+lolsuffocate@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:53:15 +0000 Subject: [PATCH] Option to blur message links from NSFW channels --- src/plugins/messageLinkEmbeds/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index d80fb9772a..d86cac53ac 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -22,6 +22,7 @@ import { definePluginSettings } from "@api/Settings"; import { getUserSettingLazy } from "@api/UserSettings"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants.js"; +import { getIntlMessage } from "@utils/discord"; import { classes } from "@utils/misc"; import { Queue } from "@utils/Queue"; import definePlugin, { OptionType } from "@utils/types"; @@ -31,7 +32,6 @@ import { ChannelStore, Constants, GuildStore, - i18n, Icons, IconUtils, MessageStore, @@ -309,7 +309,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element { return (
- {i18n.Messages.EXPLICIT_CONTENT_WARNING} + {getIntlMessage("EXPLICIT_CONTENT_WARNING")}
} @@ -332,7 +332,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element {
setVisible(!visible)} - aria-label={i18n.Messages.EXPLICIT_CONTENT_BUTTON_TOOLTIP} + aria-label={getIntlMessage("EXPLICIT_CONTENT_BUTTON_TOOLTIP")} className={obscureHoverButton}> {visible ? : }