commit 21bb4f33257ca526ac379e8e85c6d8a93282ab48
parent 13ab8c73e53622c6bacc52d3004c4a16a6f2f077
Author: Haijo7 <haijo7@protonmail.com>
Date: Fri, 2 Jun 2023 18:12:07 +0200
Added icon for bots
Diffstat:
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\">🔒</span>");
+ if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
+ s = xs_str_cat(s, " <span title=\"bot\">🤖</span>");
+
if (xs_is_null(date)) {
s = xs_str_cat(s, "<br>\n \n");
}