summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-08-11 22:04:23 +0200
committerGravatar default2023-08-11 22:04:23 +0200
commit36ee16db1deaa2f75841a1d71d761a298a046008 (patch)
tree7a0324c9f94f4985f8b8c96d054b19bcce7389be /activitypub.c
parentSet the default poll end time to 1 hour. (diff)
downloadsnac2-36ee16db1deaa2f75841a1d71d761a298a046008.tar.gz
snac2-36ee16db1deaa2f75841a1d71d761a298a046008.tar.xz
snac2-36ee16db1deaa2f75841a1d71d761a298a046008.zip
Archive JSON errors in activitypub_post_handler.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index d6110cc..7a08ceb 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2069,6 +2069,8 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path,
2069 if (msg == NULL || xs_is_null(id = xs_dict_get(msg, "id"))) { 2069 if (msg == NULL || xs_is_null(id = xs_dict_get(msg, "id"))) {
2070 srv_log(xs_fmt("activitypub_post_handler JSON error %s", q_path)); 2070 srv_log(xs_fmt("activitypub_post_handler JSON error %s", q_path));
2071 2071
2072 srv_archive_error("activitypub_post_handler", "JSON error", req, payload);
2073
2072 *body = xs_str_new("JSON error"); 2074 *body = xs_str_new("JSON error");
2073 *ctype = "text/plain"; 2075 *ctype = "text/plain";
2074 return 400; 2076 return 400;