From cc51f6e2d238911285d63ab680af6a8c3d7c5e43 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 7 Jan 2023 03:28:40 +0100 Subject: Fix blurNSFW on canary --- src/plugins/blurNsfw.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/blurNsfw.ts b/src/plugins/blurNsfw.ts index b87fba3..b24ded9 100644 --- a/src/plugins/blurNsfw.ts +++ b/src/plugins/blurNsfw.ts @@ -45,10 +45,10 @@ export default definePlugin({ { find: ".embedWrapper,embed", replacement: [{ - match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g, + match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\.embedWrapper)/g, replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')" }, { - match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\(\)\.embedWrapper)/g, + match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\.embedWrapper)/g, replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')" }] } -- cgit