diff options
| author | 2025-10-24 05:02:28 +0200 | |
|---|---|---|
| committer | 2025-10-24 05:02:28 +0200 | |
| commit | 1a42fdc8bd4d5dc045a87108e73dcda4f633266b (patch) | |
| tree | 0fad3d6cc5f6eff50edb610ef6d44acb6fdc598b /html.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.tar.gz snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.tar.xz snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.zip | |
Keep track of deleted users and return 410 Gone for them.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -3830,8 +3830,9 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3830 | 3830 | ||
| 3831 | if (!uid || !user_open(&snac, uid)) { | 3831 | if (!uid || !user_open(&snac, uid)) { |
| 3832 | /* invalid user */ | 3832 | /* invalid user */ |
| 3833 | srv_debug(1, xs_fmt("html_get_handler bad user %s", uid)); | 3833 | status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND; |
| 3834 | return HTTP_STATUS_NOT_FOUND; | 3834 | srv_debug(1, xs_fmt("html_get_handler bad user %s %d", uid, status)); |
| 3835 | return status; | ||
| 3835 | } | 3836 | } |
| 3836 | 3837 | ||
| 3837 | user = &snac; /* for L() */ | 3838 | user = &snac; /* for L() */ |