Explorar o código

Emoji must be img, not urls.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
6bcfd4e0ee
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      html.c

+ 2 - 1
html.c

@@ -77,8 +77,9 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
 
                     if (n && i) {
                         char *u = xs_dict_get(i, "url");
+                        xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\"/>", u);
 
-                        name = xs_replace_i(name, n, u);
+                        name = xs_replace_i(name, n, img);
                     }
                 }
             }