summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-28 15:27:38 +0200
committerGravatar grunfink2025-09-28 15:27:38 +0200
commit08f84453079ce87aaa0ce16449cbf01790ea176d (patch)
treeb0cbda40bb9d9e00c35a5a0ab87041a551027a2c /html.c
parentIn actor_refresh, use actor_failure() to avoid retrying 410 Gone failures. (diff)
downloadsnac2-08f84453079ce87aaa0ce16449cbf01790ea176d.tar.gz
snac2-08f84453079ce87aaa0ce16449cbf01790ea176d.tar.xz
snac2-08f84453079ce87aaa0ce16449cbf01790ea176d.zip
Show icons for instance and actor failures.
Diffstat (limited to '')
-rw-r--r--html.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/html.c b/html.c
index ed9e739..5f4b375 100644
--- a/html.c
+++ b/html.c
@@ -249,6 +249,22 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
249 xs_html_raw("🤝"))); 249 xs_html_raw("🤝")));
250 } 250 }
251 251
252 if (instance_failure(actor_id, 0) == -1) {
253 xs_html_add(actor_icon,
254 xs_html_text(" "),
255 xs_html_tag("span",
256 xs_html_attr("title", "broken instance"),
257 xs_html_raw("💔")));
258 }
259
260 if (actor_failure(actor_id, 0) == -1) {
261 xs_html_add(actor_icon,
262 xs_html_text(" "),
263 xs_html_tag("span",
264 xs_html_attr("title", "account no longer exists"),
265 xs_html_raw("💀")));
266 }
267
252 if (priv) { 268 if (priv) {
253 xs_html_add(actor_icon, 269 xs_html_add(actor_icon,
254 xs_html_text(" "), 270 xs_html_text(" "),