aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2026-08-26 08:05:16 +0200
committerdefault <nobody@localhost>2026-08-26 08:05:16 +0200
commitd7fc3d950d4654a3291066fed667f1b7d48e70bb (patch)
treebd3c353caf64678650d0826c28dddde5e98261ea /activitypub.c
parent48aba53ddbca75bfdbda7d224c6d2c315fcd282a (diff)
Use snac_op in grave().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 8155fe4..df319f0 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3951,7 +3951,7 @@ 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 */
- status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
+ status = grave(uid, OP_CHECK) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
srv_debug(1, xs_fmt("activitypub_get_handler bad user %s %d", uid, status));
return status;
}
@@ -4151,7 +4151,7 @@ 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 */
- status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
+ status = grave(uid, OP_CHECK) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
srv_debug(1, xs_fmt("activitypub_post_handler bad user %s %d", uid, status));
return status;
}