FakeNitro: fix fake emoji conversion (#3829)

This commit is contained in:
thororen 2025-12-09 21:23:36 -05:00 committed by GitHub
parent 7098f41c5b
commit 57091cfa02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,7 +295,7 @@ export default definePlugin({
{
// Patch the rendered message content to add fake nitro emojis or remove sticker links
predicate: () => settings.store.transformEmojis || settings.store.transformStickers,
match: /(?=return{hasSpoilerEmbeds:\i,content:(\i)})/,
match: /(?=return{hasSpoilerEmbeds:\i,content:(\i))/,
replace: (_, content) => `${content}=$self.patchFakeNitroEmojisOrRemoveStickersLinks(${content},arguments[2]?.formatInline);`
}
]