commit 5ac17bd
Merge pull request 'Added icon for bots' (#40) from Haijo7/snac2:master into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/40
1 files changed,
+3,
-0
M
html.c
M
html.c
+3,
-0
1@@ -117,6 +117,9 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
2 if (priv)
3 s = xs_str_cat(s, " <span title=\"private\">🔒</span>");
4
5+ if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
6+ s = xs_str_cat(s, " <span title=\"bot\">🤖</span>");
7+
8 if (xs_is_null(date)) {
9 s = xs_str_cat(s, "<br>\n \n");
10 }