From b56d3fa126745a34a8cead5219d94cb933d636e3 Mon Sep 17 00:00:00 2001 From: VirtualWolf Date: Tue, 25 Feb 2025 18:24:02 +1100 Subject: [PATCH] Show the emoji shortcode in statuses when hovering, like Mastodon's native frontend does. --- src/utils/emojify-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/emojify-text.js b/src/utils/emojify-text.js index 3c8cd43d..d6264175 100644 --- a/src/utils/emojify-text.js +++ b/src/utils/emojify-text.js @@ -8,7 +8,7 @@ function emojifyText(text, emojis = []) { const { shortcode, staticUrl, url } = emoji; text = text.replace( new RegExp(`:${shortcode}:`, 'g'), - `:${shortcode}:`, + `:${shortcode}:`, ); }); // console.log(text, emojis);