Skip to content

Commit

Permalink
Merge pull request #50 from izzy/izzy-patch-any-pronouns
Browse files Browse the repository at this point in the history
BUGFIX: any pronouns break add_message
  • Loading branch information
izzy authored Apr 22, 2024
2 parents 4cf6125 + 03c38d4 commit 07bbefb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,11 @@
user = user.toLowerCase();

if (config['ui']['pronouns'] === true && (user in pronouns_users && pronouns_users[user] !== undefined)) {
return pronouns.filter(p => p.name === pronouns_users[user]['pronoun_id'])[0].display;
if (pronouns_users[user]['pronoun_id'] === "any") {
return "Any";
} else {
return pronouns.filter(p => p.name === pronouns_users[user]['pronoun_id'])[0].display;
}
} else {
return false;
}
Expand Down Expand Up @@ -1634,4 +1638,4 @@
</script>
</body>

</html>
</html>

0 comments on commit 07bbefb

Please sign in to comment.