Skip to content

Commit

Permalink
fix: fix removing emoji from display names (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Mar 22, 2019
1 parent 47255e8 commit cf10416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/_components/compose/ComposeAuthor.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
id: ({ verifyCredentials }) => (verifyCredentials && verifyCredentials.id),
href: ({ id }) => (id ? `/accounts/${id}` : '#'),
emojis: ({ verifyCredentials }) => (verifyCredentials.emojis || []),
displayName: ({ verifyCredentials }) => verifyCredentials.display_name || verifyCredentials.username,
displayName: ({ verifyCredentials }) => verifyCredentials.display_name || verifyCredentials.username || '',
accessibleName: ({ displayName, emojis, $omitEmojiInDisplayNames }) => {
if ($omitEmojiInDisplayNames) {
return removeEmoji(displayName, emojis) || displayName || ''
return removeEmoji(displayName, emojis) || displayName
}
return displayName || ''
return displayName
}
}
}
Expand Down

0 comments on commit cf10416

Please sign in to comment.