FakeNitro: Fix crash
This commit is contained in:
parent
bea7a1711e
commit
8aea72c1be
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue