commit 6869c49
default
·
2024-09-12 21:48:16 +0000 UTC
parent 650f135
Minor fix to avoid 'Block' notifications to be invisible.
1 files changed,
+5,
-2
M
html.c
M
html.c
+5,
-2
1@@ -2552,12 +2552,14 @@ xs_str *html_notifications(snac *user, int skip, int show)
2 const char *id = xs_dict_get(noti, "objid");
3 const char *date = xs_dict_get(noti, "date");
4
5- if (xs_is_null(id) || !valid_status(object_get(id, &obj)))
6+ if (xs_is_null(id))
7 continue;
8
9 if (is_hidden(user, id))
10 continue;
11
12+ object_get(id, &obj);
13+
14 const char *actor_id = xs_dict_get(noti, "actor");
15 xs *actor = NULL;
16
17@@ -2615,7 +2617,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
18 }
19 }
20 }
21- else {
22+ else
23+ if (obj != NULL) {
24 xs *md5 = xs_md5_hex(id, strlen(id));
25
26 xs_html *h = html_entry(user, obj, 0, 0, md5, 1);