Ver Fonte

Added icon for bots

Haijo7 há 3 anos atrás
pai
commit
21bb4f3325
1 ficheiros alterados com 3 adições e 0 exclusões
  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)
     if (priv)
         s = xs_str_cat(s, " <span title=\"private\">&#128274;</span>");
         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)) {
     if (xs_is_null(date)) {
         s = xs_str_cat(s, "<br>\n&nbsp;\n");
         s = xs_str_cat(s, "<br>\n&nbsp;\n");
     }
     }