diff options
| author | 2025-12-18 09:45:55 +0100 | |
|---|---|---|
| committer | 2025-12-18 09:45:55 +0100 | |
| commit | da6d275933e9dac513386ac2bc567d3568ab0217 (patch) | |
| tree | a30b2ca813854dab04b255ff879ded831a88937a /html.c | |
| parent | If the emoji starts with &#, convert to an utf-8 string. (diff) | |
| download | snac2-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||