Skip to content

Commit

Permalink
BlurNSFW: Fix not blurring embeds (#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryawaa authored Oct 3, 2024
1 parent 18f7b74 commit 43b3c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/blurNsfw/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': '')"
}]
}
],
Expand Down

0 comments on commit 43b3c13

Please sign in to comment.