aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-01-07 03:28:40 +0100
committerVendicated <vendicated@riseup.net>2023-01-07 03:28:40 +0100
commitcc51f6e2d238911285d63ab680af6a8c3d7c5e43 (patch)
tree1bd13a87f67c80d341ec84904fdbd6f0fcc78068
parent8113ed3c8cbc8894607b7d4ed6d5bb770f1a345e (diff)
downloadVencord-cc51f6e2d238911285d63ab680af6a8c3d7c5e43.tar.gz
Vencord-cc51f6e2d238911285d63ab680af6a8c3d7c5e43.tar.bz2
Vencord-cc51f6e2d238911285d63ab680af6a8c3d7c5e43.zip
Fix blurNSFW on canary
-rw-r--r--src/plugins/blurNsfw.ts4
-rw-r--r--test/generateReport.ts3
2 files changed, 5 insertions, 2 deletions
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':'')"
}]
}
diff --git a/test/generateReport.ts b/test/generateReport.ts
index 9483225..a2b54a6 100644
--- a/test/generateReport.ts
+++ b/test/generateReport.ts
@@ -217,6 +217,9 @@ function runTime(token: string) {
// force enable all plugins and patches
Vencord.Plugins.patches.length = 0;
Object.values(Vencord.Plugins.plugins).forEach(p => {
+ // Needs native server to run
+ if (p.name === "WebRichPresence (arRPC)") return;
+
p.required = true;
p.patches?.forEach(patch => {
patch.plugin = p.name;