From da6d275933e9dac513386ac2bc567d3568ab0217 Mon Sep 17 00:00:00 2001 From: grunfink Date: Thu, 18 Dec 2025 09:45:55 +0100 Subject: Strip surrounding colons in emoji pictures, if they are still there. --- html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html.c b/html.c index 8700ac4..e59e622 100644 --- a/html.c +++ b/html.c @@ -2521,6 +2521,8 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, cl = xs_list_append(cl, "snac-reaction-image"); xs *emoji = _replace_shortnames(xs_dup(shortname), tag, 2, proxy, cl, act); + emoji = xs_strip_chars_i(emoji, ":"); + if (me) class = xs_list_append(class, "snac-reacted"); -- cgit v1.2.3