aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/fakeNitro.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts
index 34cd63b..cd2dda8 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;