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});` } ]