]> cat aescling's git repositories - mastodon.git/commitdiff
Display custom emoji in bio field names (#11350)
authorThibG <thib@sitedethib.com>
Sun, 21 Jul 2019 01:40:27 +0000 (03:40 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 21 Jul 2019 01:40:27 +0000 (03:40 +0200)
Already displayed in public pages, but not WebUI

app/javascript/mastodon/actions/importer/normalizer.js

index b250ee0765dde91902ac78a880342d9e66daf053..5e7e78e698484674d3b7814d6d820f4839b0ad6e 100644 (file)
@@ -22,7 +22,7 @@ export function normalizeAccount(account) {
   if (account.fields) {
     account.fields = account.fields.map(pair => ({
       ...pair,
-      name_emojified: emojify(escapeTextContentForBrowser(pair.name)),
+      name_emojified: emojify(escapeTextContentForBrowser(pair.name), emojiMap),
       value_emojified: emojify(pair.value, emojiMap),
       value_plain: unescapeHTML(pair.value),
     }));