summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-28 15:48:33 +0200
committerGravatar grunfink2025-09-28 15:48:33 +0200
commita12db9a44eddb808bca6a219ee9d10ffdd1f0841 (patch)
tree6bcc4c1b7b1513459c94931161fbf4023f48e496
parentMerge pull request 'implementing scopes' (#474) from byte/snac2:feature/visib... (diff)
downloadsnac2-a12db9a44eddb808bca6a219ee9d10ffdd1f0841.tar.gz
snac2-a12db9a44eddb808bca6a219ee9d10ffdd1f0841.tar.xz
snac2-a12db9a44eddb808bca6a219ee9d10ffdd1f0841.zip
Added back instance and actor failure icons.
-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,
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 (scope != -1) { 268 if (scope != -1) {
253 if (scope == SCOPE_FOLLOWERS) { 269 if (scope == SCOPE_FOLLOWERS) {
254 xs_html_add(actor_icon, 270 xs_html_add(actor_icon,