commit e0e9d11

grunfink  ·  2025-09-09 11:56:59 +0000 UTC
parent 006a836
Return a 404 instead of an empty page if requesting a non-public post.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -4174,7 +4174,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2         xs *id  = xs_fmt("%s/%s", snac.actor, p_path);
3         xs *msg = NULL;
4 
5-        if (valid_status(object_get(id, &msg))) {
6+        if (valid_status(object_get(id, &msg)) && is_msg_public(msg)) {
7             xs *md5  = xs_md5_hex(id, strlen(id));
8             xs *list = xs_list_new();
9