diff options
| author | 2025-09-28 15:27:38 +0200 | |
|---|---|---|
| committer | 2025-09-28 15:27:38 +0200 | |
| commit | 08f84453079ce87aaa0ce16449cbf01790ea176d (patch) | |
| tree | b0cbda40bb9d9e00c35a5a0ab87041a551027a2c | |
| parent | In actor_refresh, use actor_failure() to avoid retrying 410 Gone failures. (diff) | |
| download | penes-snac2-08f84453079ce87aaa0ce16449cbf01790ea176d.tar.gz penes-snac2-08f84453079ce87aaa0ce16449cbf01790ea176d.tar.xz penes-snac2-08f84453079ce87aaa0ce16449cbf01790ea176d.zip | |
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, | |||
| 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(" "), |