aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-12-18 09:45:55 +0100
committergrunfink <grunfink@comam.es>2025-12-18 09:45:55 +0100
commitda6d275933e9dac513386ac2bc567d3568ab0217 (patch)
treea30b2ca813854dab04b255ff879ded831a88937a /html.c
parent4a56b57be746b828a67b621c7fd6c7c134f64e09 (diff)
Strip surrounding colons in emoji pictures, if they are still there.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
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");