mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-15 03:15:32 +00:00
[Glitch] Fix empty display name precedence over username in web UI
Port f59b840549
to glitch-soc
This commit is contained in:
parent
1c448d6474
commit
0d6b8f36aa
|
@ -72,7 +72,7 @@ const normalizeAccount = (state, account) => {
|
|||
delete account.statuses_count;
|
||||
|
||||
const emojiMap = makeEmojiMap(account);
|
||||
const displayName = account.display_name.length === 0 ? account.username : account.display_name;
|
||||
const displayName = account.display_name.trim().length === 0 ? account.username : account.display_name;
|
||||
account.display_name_html = emojify(escapeTextContentForBrowser(displayName), emojiMap);
|
||||
account.note_emojified = emojify(account.note, emojiMap);
|
||||
|
||||
|
|
Loading…
Reference in a new issue