Prechádzať zdrojové kódy

Strip surrounding colons in emoji pictures, if they are still there.

grunfink 7 mesiacov pred
rodič
commit
da6d275933
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      html.c

+ 2 - 0
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");