Fixed bug where incorrect pronouns were displayed

This commit is contained in:
nuttylmao
2025-04-10 16:25:05 +10:00
parent 6ae6575a0d
commit 2fba365812
2 changed files with 4 additions and 10 deletions
+2 -5
View File
@@ -1057,14 +1057,11 @@ async function GetPronouns(platform, username) {
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
const response = await client.getUserPronouns(platform, username);
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);
if (userFound)
return pronouns;
else
return '';
return pronouns;
}
}
+2 -5
View File
@@ -1811,14 +1811,11 @@ async function GetPronouns(platform, username) {
console.debug(`No pronouns found for ${username}. Retrieving from alejo.io.`)
const response = await client.getUserPronouns(platform, username);
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);
if (userFound)
return pronouns;
else
return '';
return pronouns;
}
}