snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 36ee16db1deaa2f75841a1d71d761a298a046008
parent d305f899eb0a7e5526dd022c3fd08ad13ec45947
Author: default <nobody@localhost>
Date:   Fri, 11 Aug 2023 22:04:23 +0200

Archive JSON errors in activitypub_post_handler.

Diffstat:
Mactivitypub.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -2069,6 +2069,8 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path, if (msg == NULL || xs_is_null(id = xs_dict_get(msg, "id"))) { srv_log(xs_fmt("activitypub_post_handler JSON error %s", q_path)); + srv_archive_error("activitypub_post_handler", "JSON error", req, payload); + *body = xs_str_new("JSON error"); *ctype = "text/plain"; return 400;