From 8aea72c1be3635afae3225b5a90eaf837342bef4 Mon Sep 17 00:00:00 2001 From: V Date: Mon, 10 Jul 2023 22:39:40 +0200 Subject: [PATCH] FakeNitro: Fix crash --- src/plugins/fakeNitro.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index 34cd63b8..cd2dda81 100644 --- a/src/plugins/fakeNitro.ts +++ b/src/plugins/fakeNitro.ts @@ -565,7 +565,11 @@ export default definePlugin({ switch (embed.type) { case "image": { - if (!settings.store.transformCompoundSentence && !contentItems.includes(embed.url!) && !contentItems.includes(embed.image!.proxyURL)) return false; + if ( + !settings.store.transformCompoundSentence + && !contentItems.includes(embed.url!) + && !contentItems.includes(embed.image?.proxyURL!) + ) return false; if (settings.store.transformEmojis) { if (fakeNitroEmojiRegex.test(embed.url!)) return true;