فهرست منبع

Emoji must be img, not urls.

default 3 سال پیش
والد
کامیت
6bcfd4e0ee
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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);
                     }
                 }
             }