From: unarist Date: Thu, 4 May 2017 13:50:09 +0000 (+0900) Subject: Show emoji shortname by a tooltip (#2784) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=e57e6f509d19192dc32a1f18e5b1cc780dfd5fd1;p=mastodon.git Show emoji shortname by a tooltip (#2784) --- diff --git a/app/javascript/mastodon/emoji.js b/app/javascript/mastodon/emoji.js index eee657b86..01d01fb72 100644 --- a/app/javascript/mastodon/emoji.js +++ b/app/javascript/mastodon/emoji.js @@ -15,7 +15,7 @@ const unicodeToImage = str => { const filename = emojione.emojioneList[short].fname; const alt = emojione.convert(unicode.toUpperCase()); - return `${alt}`; + return `${alt}`; }); }; @@ -27,7 +27,7 @@ const shortnameToImage = str => str.replace(emojione.regShortNames, shortname => const unicode = emojione.emojioneList[shortname].unicode[emojione.emojioneList[shortname].unicode.length - 1]; const alt = emojione.convert(unicode.toUpperCase()); - return `${alt}`; + return `${alt}`; }); export default function emojify(text) {