summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-12-02 19:39:17 +0100
committerGravatar default2022-12-02 19:39:17 +0100
commitc06136a8ac480a2ff350f751ddc710c3a5f264c3 (patch)
tree90a01acdc2f13ed9b285eee4791bec36a70632f8 /activitypub.c
parentFixed RSS and outbox to use the new data storage. (diff)
downloadsnac2-c06136a8ac480a2ff350f751ddc710c3a5f264c3.tar.gz
snac2-c06136a8ac480a2ff350f751ddc710c3a5f264c3.tar.xz
snac2-c06136a8ac480a2ff350f751ddc710c3a5f264c3.zip
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,
1128 if (xs_startswith(p_path, "p/")) { 1128 if (xs_startswith(p_path, "p/")) {
1129 xs *id = xs_fmt("%s/%s", snac.actor, p_path); 1129 xs *id = xs_fmt("%s/%s", snac.actor, p_path);
1130 1130
1131 if ((msg = timeline_find(&snac, id)) != NULL) 1131 status = object_get(id, &msg, NULL);
1132 msg = xs_dict_del(msg, "_snac");
1133 else
1134 status = 404;
1135 } 1132 }
1136 else 1133 else
1137 status = 404; 1134 status = 404;