Browse Source

Added icon for bots

Haijo7 3 năm trước cách đây
mục cha
commit
21bb4f3325
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      html.c

+ 3 - 0
html.c

@@ -117,6 +117,9 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
     if (priv)
         s = xs_str_cat(s, " <span title=\"private\">&#128274;</span>");
 
+    if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
+        s = xs_str_cat(s, " <span title=\"bot\">&#129302;</span>");
+
     if (xs_is_null(date)) {
         s = xs_str_cat(s, "<br>\n&nbsp;\n");
     }