diff options
| author | grunfink <grunfink@comam.es> | 2025-09-09 13:56:59 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-09-09 13:56:59 +0200 |
| commit | e0e9d117f5a568a1bfcc624508ebefd4bbd35f62 (patch) | |
| tree | 65029347ca6415cbdbc4297e4b3d6ae9bca351bc /html.c | |
| parent | 006a83606f7d405fa0c89377e5b0494ee2e888a7 (diff) | |
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, xs *id = xs_fmt("%s/%s", snac.actor, p_path); xs *msg = NULL; - if (valid_status(object_get(id, &msg))) { + if (valid_status(object_get(id, &msg)) && is_msg_public(msg)) { xs *md5 = xs_md5_hex(id, strlen(id)); xs *list = xs_list_new(); |