aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-09-28 15:48:33 +0200
committergrunfink <grunfink@comam.es>2025-09-28 15:48:33 +0200
commita12db9a44eddb808bca6a219ee9d10ffdd1f0841 (patch)
tree6bcc4c1b7b1513459c94931161fbf4023f48e496 /html.c
parentab698c2bd6cbe74b2cca0a17fe210e159a43a2ce (diff)
Added back instance and actor failure icons.
Diffstat (limited to 'html.c')
-rw-r--r--html.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/html.c b/html.c
index 2fca837..9fef9a8 100644
--- a/html.c
+++ b/html.c
@@ -249,6 +249,22 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
xs_html_raw("&#129309;")));
}
+ 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("&#128148;")));
+ }
+
+ 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("&#128128;")));
+ }
+
if (scope != -1) {
if (scope == SCOPE_FOLLOWERS) {
xs_html_add(actor_icon,