aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-07-10 22:39:40 +0200
committerV <vendicated@riseup.net>2023-07-10 22:39:40 +0200
commit8aea72c1be3635afae3225b5a90eaf837342bef4 (patch)
tree14278387d9037b35a22d8db373ecd34f8d891539
parentbea7a1711e365e736cf3a9f86928fa0bdeff620a (diff)
downloadVencord-8aea72c1be3635afae3225b5a90eaf837342bef4.tar.gz
Vencord-8aea72c1be3635afae3225b5a90eaf837342bef4.tar.bz2
Vencord-8aea72c1be3635afae3225b5a90eaf837342bef4.zip
FakeNitro: Fix crash
-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;