snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 21bb4f33257ca526ac379e8e85c6d8a93282ab48
parent 13ab8c73e53622c6bacc52d3004c4a16a6f2f077
Author: Haijo7 <haijo7@protonmail.com>
Date:   Fri,  2 Jun 2023 18:12:07 +0200

Added icon for bots

Diffstat:
Mhtml.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/html.c b/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"); }