diff options
| author | 2025-11-01 00:48:33 +0100 | |
|---|---|---|
| committer | 2025-11-01 00:48:33 +0100 | |
| commit | 8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709 (patch) | |
| tree | 8f86ca0f28ef5c6b242a411bb6e9d38de25cf191 /activitypub.c | |
| parent | rendering visibility conditionally, with lesser reach if needed (diff) | |
| parent | Merge pull request 'po/de_DE.po aktualisiert' (#494) from zen/snac2:master in... (diff) | |
| download | snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.tar.gz snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.tar.xz snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.zip | |
Merge remote-tracking branch 'orig/master' into feature/lesser-visibility
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 10 |
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, | |||
| 3660 | uid = xs_list_get(l, 1); | 3660 | uid = xs_list_get(l, 1); |
| 3661 | if (!user_open(&snac, uid)) { | 3661 | if (!user_open(&snac, uid)) { |
| 3662 | /* invalid user */ | 3662 | /* invalid user */ |
| 3663 | srv_debug(1, xs_fmt("activitypub_get_handler bad user %s", uid)); | 3663 | status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND; |
| 3664 | return HTTP_STATUS_NOT_FOUND; | 3664 | srv_debug(1, xs_fmt("activitypub_get_handler bad user %s %d", uid, status)); |
| 3665 | return status; | ||
| 3665 | } | 3666 | } |
| 3666 | 3667 | ||
| 3667 | p_path = xs_list_get(l, 2); | 3668 | p_path = xs_list_get(l, 2); |
| @@ -3854,8 +3855,9 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path, | |||
| 3854 | const char *uid = xs_list_get(l, 1); | 3855 | const char *uid = xs_list_get(l, 1); |
| 3855 | if (!user_open(&snac, uid)) { | 3856 | if (!user_open(&snac, uid)) { |
| 3856 | /* invalid user */ | 3857 | /* invalid user */ |
| 3857 | srv_debug(1, xs_fmt("activitypub_post_handler bad user %s", uid)); | 3858 | status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND; |
| 3858 | return HTTP_STATUS_NOT_FOUND; | 3859 | srv_debug(1, xs_fmt("activitypub_post_handler bad user %s %d", uid, status)); |
| 3860 | return status; | ||
| 3859 | } | 3861 | } |
| 3860 | 3862 | ||
| 3861 | /* if it has a digest, check it now, because | 3863 | /* if it has a digest, check it now, because |