diff options
| author | 2023-06-02 17:36:06 +0000 | |
|---|---|---|
| committer | 2023-06-02 17:36:06 +0000 | |
| commit | 5ac17bdc1b5e9fc15a9bafc35e63f24bb48b4115 (patch) | |
| tree | 08b7a920ccadc2e463c0c29b6e886fbeada0ccf6 | |
| parent | More notify tweaks (I'm getting sick of this). (diff) | |
| parent | Added icon for bots (diff) | |
| download | penes-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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\">🔒</span>"); | 118 | s = xs_str_cat(s, " <span title=\"private\">🔒</span>"); |
| 119 | 119 | ||
| 120 | if (strcmp(xs_dict_get(actor, "type"), "Service") == 0) | ||
| 121 | s = xs_str_cat(s, " <span title=\"bot\">🤖</span>"); | ||
| 122 | |||
| 120 | if (xs_is_null(date)) { | 123 | if (xs_is_null(date)) { |
| 121 | s = xs_str_cat(s, "<br>\n \n"); | 124 | s = xs_str_cat(s, "<br>\n \n"); |
| 122 | } | 125 | } |