fix: fix removing emoji from display names (#1114)
This commit is contained in:
parent
47255e818c
commit
cf104163fe
|
@ -88,12 +88,12 @@
|
||||||
id: ({ verifyCredentials }) => (verifyCredentials && verifyCredentials.id),
|
id: ({ verifyCredentials }) => (verifyCredentials && verifyCredentials.id),
|
||||||
href: ({ id }) => (id ? `/accounts/${id}` : '#'),
|
href: ({ id }) => (id ? `/accounts/${id}` : '#'),
|
||||||
emojis: ({ verifyCredentials }) => (verifyCredentials.emojis || []),
|
emojis: ({ verifyCredentials }) => (verifyCredentials.emojis || []),
|
||||||
displayName: ({ verifyCredentials }) => verifyCredentials.display_name || verifyCredentials.username,
|
displayName: ({ verifyCredentials }) => verifyCredentials.display_name || verifyCredentials.username || '',
|
||||||
accessibleName: ({ displayName, emojis, $omitEmojiInDisplayNames }) => {
|
accessibleName: ({ displayName, emojis, $omitEmojiInDisplayNames }) => {
|
||||||
if ($omitEmojiInDisplayNames) {
|
if ($omitEmojiInDisplayNames) {
|
||||||
return removeEmoji(displayName, emojis) || displayName || ''
|
return removeEmoji(displayName, emojis) || displayName
|
||||||
}
|
}
|
||||||
return displayName || ''
|
return displayName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue