aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-05-22 17:05:52 +0200
committergrunfink <grunfink@comam.es>2026-05-22 17:05:52 +0200
commitfbbc4e808631b81f0baf43ffc6ea12be603e4d79 (patch)
tree264b00658927f6268b16071858e17f854168d148 /activitypub.c
parent4f1687ad0bf86d764077e0266f067ca086580540 (diff)
Added more logging.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index aeb0967..49e81f4 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3885,8 +3885,10 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
xs *l = xs_split_n(q_path, "/", 2);
- if (xs_list_len(l) <= 1)
+ if (xs_list_len(l) <= 1) {
+ srv_debug(1, xs_fmt("activitypub_get_handler bad path %s", q_path));
return HTTP_STATUS_BAD_REQUEST;
+ }
const char *uid;
const char *p_path;
@@ -4075,8 +4077,10 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path,
/* get the user and path */
xs *l = xs_split_n(q_path, "/", 2);
- if (xs_list_len(l) <= 1)
+ if (xs_list_len(l) <= 1) {
+ srv_debug(1, xs_fmt("activitypub_post_handler bad path %s", q_path));
return HTTP_STATUS_BAD_REQUEST;
+ }
if (xs_list_len(l) == 2 && strcmp(xs_list_get(l, 1), "shared-inbox") == 0) {
enqueue_shared_input(msg, req, 0);