mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Minor fix to avoid 'Block' notifications to be invisible.
This commit is contained in:
parent
650f135775
commit
6869c493a1
1 changed files with 5 additions and 2 deletions
7
html.c
7
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 *id = xs_dict_get(noti, "objid");
|
||||||
const char *date = xs_dict_get(noti, "date");
|
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;
|
continue;
|
||||||
|
|
||||||
if (is_hidden(user, id))
|
if (is_hidden(user, id))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
object_get(id, &obj);
|
||||||
|
|
||||||
const char *actor_id = xs_dict_get(noti, "actor");
|
const char *actor_id = xs_dict_get(noti, "actor");
|
||||||
xs *actor = NULL;
|
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 *md5 = xs_md5_hex(id, strlen(id));
|
||||||
|
|
||||||
xs_html *h = html_entry(user, obj, 0, 0, md5, 1);
|
xs_html *h = html_entry(user, obj, 0, 0, md5, 1);
|
||||||
|
|
Loading…
Reference in a new issue