From 78aab68c36d95ff912d3c37b89eed2a3aa52c554 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Apr 2022 15:30:50 +0100 Subject: [PATCH] Keep the emoji name --- webapp_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index e68fab493..25c33f2ab 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -1710,10 +1710,9 @@ def html_common_emoji(base_dir: str, no_of_emoji: int) -> str: if emojis_json: for emoji_tag, emoji_code in emojis_json.items(): if emoji_tag == emoji_name: - emoji_name = emoji_code # get the filename based on the hex code emoji_filename = \ - base_dir + '/emoji/' + emoji_name + '.png' + base_dir + '/emoji/' + emoji_code + '.png' break if os.path.isfile(emoji_filename): # NOTE: deliberately no alt text, so that without graphics only