aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-02 19:39:17 +0100
committerdefault <nobody@localhost>2022-12-02 19:39:17 +0100
commitc06136a8ac480a2ff350f751ddc710c3a5f264c3 (patch)
tree90a01acdc2f13ed9b285eee4791bec36a70632f8 /activitypub.c
parent33c8a73c17667b117f1bb720a5a32c485fd7d130 (diff)
Fixed one post queries.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c
index 8a5dd3c..764f69d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1128,10 +1128,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
if (xs_startswith(p_path, "p/")) {
xs *id = xs_fmt("%s/%s", snac.actor, p_path);
- if ((msg = timeline_find(&snac, id)) != NULL)
- msg = xs_dict_del(msg, "_snac");
- else
- status = 404;
+ status = object_get(id, &msg, NULL);
}
else
status = 404;