summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-12-18 09:45:55 +0100
committerGravatar grunfink2025-12-18 09:45:55 +0100
commitda6d275933e9dac513386ac2bc567d3568ab0217 (patch)
treea30b2ca813854dab04b255ff879ded831a88937a /html.c
parentIf the emoji starts with &#, convert to an utf-8 string. (diff)
downloadsnac2-da6d275933e9dac513386ac2bc567d3568ab0217.tar.gz
snac2-da6d275933e9dac513386ac2bc567d3568ab0217.tar.xz
snac2-da6d275933e9dac513386ac2bc567d3568ab0217.zip
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,
2521 cl = xs_list_append(cl, "snac-reaction-image"); 2521 cl = xs_list_append(cl, "snac-reaction-image");
2522 xs *emoji = _replace_shortnames(xs_dup(shortname), tag, 2, proxy, cl, act); 2522 xs *emoji = _replace_shortnames(xs_dup(shortname), tag, 2, proxy, cl, act);
2523 2523
2524 emoji = xs_strip_chars_i(emoji, ":");
2525
2524 if (me) 2526 if (me)
2525 class = xs_list_append(class, "snac-reacted"); 2527 class = xs_list_append(class, "snac-reacted");
2526 2528