fakeNitro: fix patch

This commit is contained in:
sadan 2026-02-04 22:59:33 -05:00
parent 29784ed997
commit c7ffbd204a
No known key found for this signature in database

View file

@ -293,7 +293,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,hasBailedAst:\i,content:(\i))/,
replace: (_, content) => `${content}=$self.patchFakeNitroEmojisOrRemoveStickersLinks(${content},arguments[2]?.formatInline);`
}
]