From cf104163fe418d936e84737b02b35454fdab7624 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 22 Mar 2019 15:55:33 -0700 Subject: [PATCH] fix: fix removing emoji from display names (#1114) --- src/routes/_components/compose/ComposeAuthor.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/_components/compose/ComposeAuthor.html b/src/routes/_components/compose/ComposeAuthor.html index 1df2a41e..ccd519bf 100644 --- a/src/routes/_components/compose/ComposeAuthor.html +++ b/src/routes/_components/compose/ComposeAuthor.html @@ -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 } } }