فهرست منبع

Return a 404 instead of an empty page if requesting a non-public post.

grunfink 11 ماه پیش
والد
کامیت
e0e9d117f5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      html.c

+ 1 - 1
html.c

@@ -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();