diff options
| author | grunfink <grunfink@comam.es> | 2025-09-28 15:27:38 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-09-28 15:27:38 +0200 |
| commit | 08f84453079ce87aaa0ce16449cbf01790ea176d (patch) | |
| tree | b0cbda40bb9d9e00c35a5a0ab87041a551027a2c | |
| parent | 6069660c91106ee676f4dc4fd0e25b3ea6261832 (diff) | |
Show icons for instance and actor failures.
| -rw-r--r-- | html.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -249,6 +249,22 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date, xs_html_raw("🤝"))); } + if (instance_failure(actor_id, 0) == -1) { + xs_html_add(actor_icon, + xs_html_text(" "), + xs_html_tag("span", + xs_html_attr("title", "broken instance"), + xs_html_raw("💔"))); + } + + if (actor_failure(actor_id, 0) == -1) { + xs_html_add(actor_icon, + xs_html_text(" "), + xs_html_tag("span", + xs_html_attr("title", "account no longer exists"), + xs_html_raw("💀"))); + } + if (priv) { xs_html_add(actor_icon, xs_html_text(" "), |