From 906c265aea19c3e25a1d9ddb49d11e3d341f50c4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 31 Mar 2023 00:15:51 +0200 Subject: [PATCH] FakeNitro: Fix fake emote rendering incorrectly in thread previews --- src/plugins/fakeNitro.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/fakeNitro.tsx b/src/plugins/fakeNitro.tsx index 5e8c38197..e703af563 100644 --- a/src/plugins/fakeNitro.tsx +++ b/src/plugins/fakeNitro.tsx @@ -204,7 +204,7 @@ export default definePlugin({ }, { match: /(?=return{hasSpoilerEmbeds:\i,content:(\i)})/, - replace: (_, content) => `${content}=$self.patchFakeNitroEmojis(${content});` + replace: (_, content) => `${content}=$self.patchFakeNitroEmojis(${content},arguments[2]?.formatInline);` } ] }, @@ -333,7 +333,7 @@ export default definePlugin({ EmojiComponent: null as any, - patchFakeNitroEmojis(content: Array) { + patchFakeNitroEmojis(content: Array, inline: boolean) { if (!this.EmojiComponent) return content; const newContent: Array = []; @@ -353,7 +353,7 @@ export default definePlugin({ newContent.push((