Parcourir la source

Show icons for instance and actor failures.

grunfink il y a 10 mois
Parent
commit
08f8445307
1 fichiers modifiés avec 16 ajouts et 0 suppressions
  1. 16 0
      html.c

+ 16 - 0
html.c

@@ -249,6 +249,22 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
                 xs_html_raw("🤝")));
                 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) {
     if (priv) {
         xs_html_add(actor_icon,
         xs_html_add(actor_icon,
             xs_html_text(" "),
             xs_html_text(" "),