fix error

master
Aevann 2023-10-26 18:22:03 +03:00
parent c80a22e8a0
commit d63face5cd
1 changed files with 4 additions and 3 deletions

View File

@ -177,9 +177,10 @@ function fetchEmojis() {
if (!emoji.author_username.endsWith(' user')) { if (!emoji.author_username.endsWith(' user')) {
emojisSearchDictionary.updateTag(`@${emoji.author_username.toLowerCase()}`, emoji.name); emojisSearchDictionary.updateTag(`@${emoji.author_username.toLowerCase()}`, emoji.name);
emojisSearchDictionary.updateTag(`@${emoji.author_original_username.toLowerCase()}`, emoji.name); if (emoji.author_original_username != emoji.author_username)
try {emojisSearchDictionary.updateTag(`@${emoji.author_prelock_username.toLowerCase()}`, emoji.name);} emojisSearchDictionary.updateTag(`@${emoji.author_original_username.toLowerCase()}`, emoji.name);
catch (e) {console.log(emoji.author_username)} if (emoji.author_prelock_username !== null)
emojisSearchDictionary.updateTag(`@${emoji.author_prelock_username.toLowerCase()}`, emoji.name);
} }
if (emoji.tags instanceof Array) if (emoji.tags instanceof Array)