mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Fixed bug where incorrect pronouns were displayed
This commit is contained in:
@@ -1057,14 +1057,11 @@ async function GetPronouns(platform, username) {
|
|||||||
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
|
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
|
||||||
const response = await client.getUserPronouns(platform, username);
|
const response = await client.getUserPronouns(platform, username);
|
||||||
const userFound = response.pronoun.userFound;
|
const userFound = response.pronoun.userFound;
|
||||||
const pronouns = `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}`;
|
const pronouns = userFound ? `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}` : '';
|
||||||
|
|
||||||
pronounMap.set(username, pronouns);
|
pronounMap.set(username, pronouns);
|
||||||
|
|
||||||
if (userFound)
|
|
||||||
return pronouns;
|
return pronouns;
|
||||||
else
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1811,14 +1811,11 @@ async function GetPronouns(platform, username) {
|
|||||||
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
|
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
|
||||||
const response = await client.getUserPronouns(platform, username);
|
const response = await client.getUserPronouns(platform, username);
|
||||||
const userFound = response.pronoun.userFound;
|
const userFound = response.pronoun.userFound;
|
||||||
const pronouns = `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}`;
|
const pronouns = userFound ? `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}` : '';
|
||||||
|
|
||||||
pronounMap.set(username, pronouns);
|
pronounMap.set(username, pronouns);
|
||||||
|
|
||||||
if (userFound)
|
|
||||||
return pronouns;
|
return pronouns;
|
||||||
else
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user