]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Display custom emoji in bio field names
authorThibaut Girka <thib@sitedethib.com>
Tue, 23 Jul 2019 08:33:25 +0000 (10:33 +0200)
committerThibaut Girka <thib@sitedethib.com>
Tue, 23 Jul 2019 08:51:12 +0000 (10:51 +0200)
Port 4bd58b7f2da369a608eacb97f832728ddc139ce8 to glitch-soc

app/javascript/flavours/glitch/actions/importer/normalizer.js

index c19ca82659dd9ab2d1866af191603df8d333ed40..52d85c059cd6f7604f566e4698c5f5b69906d0cb 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),
     }));