From 43b3c137ceb5ee8b02147936ef17334a1845089b Mon Sep 17 00:00:00 2001 From: ryanamay Date: Thu, 3 Oct 2024 15:11:37 +0800 Subject: [PATCH] BlurNSFW: Fix not blurring embeds (#2862) --- src/plugins/blurNsfw/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index a80f9f260..948de0ac6 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -45,8 +45,8 @@ export default definePlugin({ { find: ".embedWrapper,embed", replacement: [{ - match: /\.embedWrapper(?=.+?channel_id:(\i)\.id)/g, - replace: "$&+($1.nsfw?' vc-nsfw-img':'')" + match: /\.container/, + replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" }] } ],