aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuna <imlvnaa@gmail.com>2023-09-08 21:55:27 +0000
committerVen <ven@noreply.codeberg.org>2023-09-08 21:55:27 +0000
commit620319a4bc8c07a9fad488bb5aff67801aafaeef (patch)
treea177fa25d95ebab5bd796080a0377c702110a41e /src
parent4c9996d620322e4a4f09538e829f2fe52e5f18a2 (diff)
downloadVencord-620319a4bc8c07a9fad488bb5aff67801aafaeef.tar.gz
Vencord-620319a4bc8c07a9fad488bb5aff67801aafaeef.tar.bz2
Vencord-620319a4bc8c07a9fad488bb5aff67801aafaeef.zip
blurnsfw: fix crash (#31)
Reviewed-on: https://codeberg.org/Ven/cord/pulls/31 Co-authored-by: Luna <imlvnaa@gmail.com> Co-committed-by: Luna <imlvnaa@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/blurNsfw.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/blurNsfw.ts b/src/plugins/blurNsfw.ts
index dadc49b..54b1e49 100644
--- a/src/plugins/blurNsfw.ts
+++ b/src/plugins/blurNsfw.ts
@@ -49,7 +49,7 @@ export default definePlugin({
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
}, {
match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\.embedWrapper)/g,
- replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
+ replace: "$1,vcProps=$2$3+(vcProps.nsfw?' vc-nsfw-img':'')"
}]
}
],