From 6e3066bd9b4f1c387215d27f92c67ac0bf6b6af6 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 1 Sep 2022 12:23:23 +0200 Subject: [PATCH] Fix support for multi-codepoints emoji --- app/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates.py b/app/templates.py index 8ac8a2a..f338d64 100644 --- a/app/templates.py +++ b/app/templates.py @@ -379,7 +379,7 @@ def _html2text(content: str) -> str: def _replace_emoji(u: str, _) -> str: - filename = hex(ord(u))[2:] + filename = "-".join(hex(ord(c))[2:] for c in u) return config.EMOJI_TPL.format(filename=filename, raw=u)