aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorbyte <gf3qyrmw7@mozmail.com>2025-11-01 00:48:33 +0100
committerbyte <gf3qyrmw7@mozmail.com>2025-11-01 00:48:33 +0100
commit8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709 (patch)
tree8f86ca0f28ef5c6b242a411bb6e9d38de25cf191 /activitypub.c
parenta4a1990dbb16e3e4599500299c32c980c9cbd5bf (diff)
parent074072bde45284a2f11bb8a06b5670dbd3c4a716 (diff)
Merge remote-tracking branch 'orig/master' into feature/lesser-visibility
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c
index 2d53cbe..0368ac8 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3660,8 +3660,9 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
uid = xs_list_get(l, 1);
if (!user_open(&snac, uid)) {
/* invalid user */
- srv_debug(1, xs_fmt("activitypub_get_handler bad user %s", uid));
- return HTTP_STATUS_NOT_FOUND;
+ status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
+ srv_debug(1, xs_fmt("activitypub_get_handler bad user %s %d", uid, status));
+ return status;
}
p_path = xs_list_get(l, 2);
@@ -3854,8 +3855,9 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path,
const char *uid = xs_list_get(l, 1);
if (!user_open(&snac, uid)) {
/* invalid user */
- srv_debug(1, xs_fmt("activitypub_post_handler bad user %s", uid));
- return HTTP_STATUS_NOT_FOUND;
+ status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
+ srv_debug(1, xs_fmt("activitypub_post_handler bad user %s %d", uid, status));
+ return status;
}
/* if it has a digest, check it now, because