Case-insensitive and don't apply for short:true

This commit is contained in:
Lim Chee Aun 2022-12-20 22:00:11 +08:00
parent e9e664d871
commit 3fede678c7

View file

@ -11,7 +11,12 @@ function NameText({ account, showAvatar, showAcct, short, external }) {
const displayNameWithEmoji = emojifyText(displayName, emojis); const displayNameWithEmoji = emojifyText(displayName, emojis);
if (username === displayName) username = null; if (
!short &&
username.toLowerCase().trim() === (displayName || '').toLowerCase().trim()
) {
username = null;
}
return ( return (
<a <a