mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +03:00
Case-insensitive and don't apply for short:true
This commit is contained in:
parent
e9e664d871
commit
3fede678c7
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue