mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Fixed missing notifications in certain circunstancies.
This commit is contained in:
parent
be5f08e6c3
commit
0bd609f5be
2 changed files with 2 additions and 2 deletions
2
html.c
2
html.c
|
@ -1226,7 +1226,7 @@ xs_str *html_notifications(snac *snac)
|
||||||
const char *actor_id = xs_dict_get(noti, "actor");
|
const char *actor_id = xs_dict_get(noti, "actor");
|
||||||
xs *actor = NULL;
|
xs *actor = NULL;
|
||||||
|
|
||||||
if (!valid_status(object_get(actor_id, &actor)))
|
if (!valid_status(actor_get(snac, actor_id, &actor)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
xs *a_name = actor_name(actor);
|
xs *a_name = actor_name(actor);
|
||||||
|
|
|
@ -1108,7 +1108,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
xs *actor = NULL;
|
xs *actor = NULL;
|
||||||
xs *entry = NULL;
|
xs *entry = NULL;
|
||||||
|
|
||||||
if (!valid_status(object_get(xs_dict_get(noti, "actor"), &actor)))
|
if (!valid_status(actor_get(&snac1, xs_dict_get(noti, "actor"), &actor)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (objid != NULL && !valid_status(object_get(objid, &entry)))
|
if (objid != NULL && !valid_status(object_get(objid, &entry)))
|
||||||
|
|
Loading…
Reference in a new issue