aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-09-12 23:48:16 +0200
committerdefault <nobody@localhost>2024-09-12 23:48:16 +0200
commit6869c493a125f9e44de16dc4cc20c426e4364ff1 (patch)
treed56c067373ac05b8ac0af732a828fe0f9175f3ff /html.c
parent650f13577507bfea5aeb95375e46b8a428d56dec (diff)
Minor fix to avoid 'Block' notifications to be invisible.
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/html.c b/html.c
index 06c5ff1..47ab9b8 100644
--- a/html.c
+++ b/html.c
@@ -2552,12 +2552,14 @@ xs_str *html_notifications(snac *user, int skip, int show)
const char *id = xs_dict_get(noti, "objid");
const char *date = xs_dict_get(noti, "date");
- if (xs_is_null(id) || !valid_status(object_get(id, &obj)))
+ if (xs_is_null(id))
continue;
if (is_hidden(user, id))
continue;
+ object_get(id, &obj);
+
const char *actor_id = xs_dict_get(noti, "actor");
xs *actor = NULL;
@@ -2615,7 +2617,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
}
}
}
- else {
+ else
+ if (obj != NULL) {
xs *md5 = xs_md5_hex(id, strlen(id));
xs_html *h = html_entry(user, obj, 0, 0, md5, 1);