BlurNSFW: Fix not blurring embeds (#2862)

This commit is contained in:
ryanamay 2024-10-03 15:11:37 +08:00 committed by GitHub
parent 18f7b74210
commit 43b3c137ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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': '')"
}]
}
],