commit da6d275

grunfink  ·  2025-12-18 08:45:55 +0000 UTC
parent 4a56b57
Strip surrounding colons in emoji pictures, if they are still there.
1 files changed,  +2, -0
M html.c
M html.c
+2, -0
1@@ -2521,6 +2521,8 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2                         cl = xs_list_append(cl, "snac-reaction-image");
3                         xs *emoji = _replace_shortnames(xs_dup(shortname), tag, 2, proxy, cl, act);
4 
5+                        emoji = xs_strip_chars_i(emoji, ":");
6+
7                         if (me)
8                             class = xs_list_append(class, "snac-reacted");
9