Browse Source

Fix empty display name precedence over username in web UI (#9163)

Fix #9131
pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
f59b840549
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/actions/importer/normalizer.js

+ 1
- 1
app/javascript/mastodon/actions/importer/normalizer.js View File

@ -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…
Cancel
Save