diff options
| author | 2025-09-09 13:56:59 +0200 | |
|---|---|---|
| committer | 2025-09-09 13:56:59 +0200 | |
| commit | e0e9d117f5a568a1bfcc624508ebefd4bbd35f62 (patch) | |
| tree | 65029347ca6415cbdbc4297e4b3d6ae9bca351bc /html.c | |
| parent | Reworded SECURITY.md. (diff) | |
| download | penes-snac2-e0e9d117f5a568a1bfcc624508ebefd4bbd35f62.tar.gz penes-snac2-e0e9d117f5a568a1bfcc624508ebefd4bbd35f62.tar.xz penes-snac2-e0e9d117f5a568a1bfcc624508ebefd4bbd35f62.zip | |
Return a 404 instead of an empty page if requesting a non-public post.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -4174,7 +4174,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 4174 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); | 4174 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); |
| 4175 | xs *msg = NULL; | 4175 | xs *msg = NULL; |
| 4176 | 4176 | ||
| 4177 | if (valid_status(object_get(id, &msg))) { | 4177 | if (valid_status(object_get(id, &msg)) && is_msg_public(msg)) { |
| 4178 | xs *md5 = xs_md5_hex(id, strlen(id)); | 4178 | xs *md5 = xs_md5_hex(id, strlen(id)); |
| 4179 | xs *list = xs_list_new(); | 4179 | xs *list = xs_list_new(); |
| 4180 | 4180 | ||