From c06136a8ac480a2ff350f751ddc710c3a5f264c3 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 2 Dec 2022 19:39:17 +0100 Subject: Fixed one post queries. --- activitypub.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'activitypub.c') 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; -- cgit v1.2.3