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

pull/13/head
Lim Chee Aun 2022-12-20 22:00:11 +08:00
rodzic e9e664d871
commit 3fede678c7
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

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