summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-05-03 07:57:10 +0200
committerGravatar default2023-05-03 07:57:10 +0200
commit0bd609f5be9aa24bced629273ff2428058388ac3 (patch)
treeddc5e93c427935ec5b4d4170ef480c20d118512b
parentUse xs_replace_n() where it suits. (diff)
downloadpenes-snac2-0bd609f5be9aa24bced629273ff2428058388ac3.tar.gz
penes-snac2-0bd609f5be9aa24bced629273ff2428058388ac3.tar.xz
penes-snac2-0bd609f5be9aa24bced629273ff2428058388ac3.zip
Fixed missing notifications in certain circunstancies.
-rw-r--r--html.c2
-rw-r--r--mastoapi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 5f57262..9d6fbc6 100644
--- a/html.c
+++ b/html.c
@@ -1226,7 +1226,7 @@ xs_str *html_notifications(snac *snac)
1226 const char *actor_id = xs_dict_get(noti, "actor"); 1226 const char *actor_id = xs_dict_get(noti, "actor");
1227 xs *actor = NULL; 1227 xs *actor = NULL;
1228 1228
1229 if (!valid_status(object_get(actor_id, &actor))) 1229 if (!valid_status(actor_get(snac, actor_id, &actor)))
1230 continue; 1230 continue;
1231 1231
1232 xs *a_name = actor_name(actor); 1232 xs *a_name = actor_name(actor);
diff --git a/mastoapi.c b/mastoapi.c
index f7e101d..7324bed 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1108,7 +1108,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1108 xs *actor = NULL; 1108 xs *actor = NULL;
1109 xs *entry = NULL; 1109 xs *entry = NULL;
1110 1110
1111 if (!valid_status(object_get(xs_dict_get(noti, "actor"), &actor))) 1111 if (!valid_status(actor_get(&snac1, xs_dict_get(noti, "actor"), &actor)))
1112 continue; 1112 continue;
1113 1113
1114 if (objid != NULL && !valid_status(object_get(objid, &entry))) 1114 if (objid != NULL && !valid_status(object_get(objid, &entry)))