From 5a0b2ee3f50c1d14bb7bd6af20d8fdd5532cac71 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 21 Oct 2023 12:04:32 -0300 Subject: [PATCH] Fix FakeNitro patch --- src/plugins/fakeNitro/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fakeNitro/index.ts b/src/plugins/fakeNitro/index.ts index a11a43de0..a6ddb4723 100644 --- a/src/plugins/fakeNitro/index.ts +++ b/src/plugins/fakeNitro/index.ts @@ -295,7 +295,7 @@ export default definePlugin({ }, { predicate: () => settings.store.transformStickers, - match: /renderAttachments=function\(\i\){var (\i)=\i.attachments.+?;/, + match: /renderAttachments=function\(\i\){var \i=this,(\i)=\i.attachments.+?;/, replace: (m, attachments) => `${m}${attachments}=$self.filterAttachments(${attachments});` } ]