summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2023-06-02 17:36:06 +0000
committerGravatar grunfink2023-06-02 17:36:06 +0000
commit5ac17bdc1b5e9fc15a9bafc35e63f24bb48b4115 (patch)
tree08b7a920ccadc2e463c0c29b6e886fbeada0ccf6
parentMore notify tweaks (I'm getting sick of this). (diff)
parentAdded icon for bots (diff)
downloadpenes-snac2-5ac17bdc1b5e9fc15a9bafc35e63f24bb48b4115.tar.gz
penes-snac2-5ac17bdc1b5e9fc15a9bafc35e63f24bb48b4115.tar.xz
penes-snac2-5ac17bdc1b5e9fc15a9bafc35e63f24bb48b4115.zip
Merge pull request 'Added icon for bots' (#40) from Haijo7/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/40
-rw-r--r--html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.c b/html.c
index 78e164d..8bd6530 100644
--- a/html.c
+++ b/html.c
@@ -117,6 +117,9 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
117 if (priv) 117 if (priv)
118 s = xs_str_cat(s, " <span title=\"private\">&#128274;</span>"); 118 s = xs_str_cat(s, " <span title=\"private\">&#128274;</span>");
119 119
120 if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
121 s = xs_str_cat(s, " <span title=\"bot\">&#129302;</span>");
122
120 if (xs_is_null(date)) { 123 if (xs_is_null(date)) {
121 s = xs_str_cat(s, "<br>\n&nbsp;\n"); 124 s = xs_str_cat(s, "<br>\n&nbsp;\n");
122 } 125 }