From 8524ace23f1ebec07fd4d51171e121b1f1e75007 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 8 Oct 2023 00:06:37 +0200 Subject: Hide posts from the public web for accounts with 'private' == true. --- httpd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index e2cfbb0..20d87bd 100644 --- a/httpd.c +++ b/httpd.c @@ -284,6 +284,9 @@ void httpd_connection(FILE *f) status = 404; } + if (status == 403) + body = xs_str_new("

403 Forbidden

"); + if (status == 404) body = xs_str_new("

404 Not Found

"); -- cgit v1.2.3