Merge pull request 'Added icon for bots' (#40) from Haijo7/snac2:master into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/40
This commit is contained in:
grunfink 2023-06-02 17:36:06 +00:00
commit 5ac17bdc1b

3
html.c
View File

@ -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");
}