commit 0bd609f

default  ·  2023-05-03 05:57:10 +0000 UTC
parent be5f08e
Fixed missing notifications in certain circunstancies.
2 files changed,  +2, -2
M html.c
M html.c
+1, -1
1@@ -1226,7 +1226,7 @@ xs_str *html_notifications(snac *snac)
2         const char *actor_id = xs_dict_get(noti, "actor");
3         xs *actor = NULL;
4 
5-        if (!valid_status(object_get(actor_id, &actor)))
6+        if (!valid_status(actor_get(snac, actor_id, &actor)))
7             continue;
8 
9         xs *a_name = actor_name(actor);
+1, -1
1@@ -1108,7 +1108,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2                 xs *actor = NULL;
3                 xs *entry = NULL;
4 
5-                if (!valid_status(object_get(xs_dict_get(noti, "actor"), &actor)))
6+                if (!valid_status(actor_get(&snac1, xs_dict_get(noti, "actor"), &actor)))
7                     continue;
8 
9                 if (objid != NULL && !valid_status(object_get(objid, &entry)))