mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix empty display name precedence over username in web UI (#9163)
Fix #9131
This commit is contained in:
parent
cc45a8f9f7
commit
f59b840549
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export function normalizeAccount(account) {
|
|||
account = { ...account };
|
||||
|
||||
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