commit 08f8445
grunfink
·
2025-09-28 13:27:38 +0000 UTC
parent 6069660
Show icons for instance and actor failures.
1 files changed,
+16,
-0
M
html.c
M
html.c
+16,
-0
1@@ -249,6 +249,22 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
2 xs_html_raw("🤝")));
3 }
4
5+ if (instance_failure(actor_id, 0) == -1) {
6+ xs_html_add(actor_icon,
7+ xs_html_text(" "),
8+ xs_html_tag("span",
9+ xs_html_attr("title", "broken instance"),
10+ xs_html_raw("💔")));
11+ }
12+
13+ if (actor_failure(actor_id, 0) == -1) {
14+ xs_html_add(actor_icon,
15+ xs_html_text(" "),
16+ xs_html_tag("span",
17+ xs_html_attr("title", "account no longer exists"),
18+ xs_html_raw("💀")));
19+ }
20+
21 if (priv) {
22 xs_html_add(actor_icon,
23 xs_html_text(" "),