mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-13 14:45:12 +01:00
[Glitch] Display custom emoji in bio field names
Port 4bd58b7f2d
to glitch-soc
This commit is contained in:
parent
8a89a2b0f4
commit
cd8763b600
@ -22,7 +22,7 @@ export function normalizeAccount(account) {
|
|||||||
if (account.fields) {
|
if (account.fields) {
|
||||||
account.fields = account.fields.map(pair => ({
|
account.fields = account.fields.map(pair => ({
|
||||||
...pair,
|
...pair,
|
||||||
name_emojified: emojify(escapeTextContentForBrowser(pair.name)),
|
name_emojified: emojify(escapeTextContentForBrowser(pair.name), emojiMap),
|
||||||
value_emojified: emojify(pair.value, emojiMap),
|
value_emojified: emojify(pair.value, emojiMap),
|
||||||
value_plain: unescapeHTML(pair.value),
|
value_plain: unescapeHTML(pair.value),
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user