diff options
| author | 2023-10-08 00:06:37 +0200 | |
|---|---|---|
| committer | 2023-10-08 00:06:37 +0200 | |
| commit | 8524ace23f1ebec07fd4d51171e121b1f1e75007 (patch) | |
| tree | 03f98d1ce6d29b85c31dc85e104dbfda2ff9aab8 /httpd.c | |
| parent | Merge branch 'master' of /home/angel/git/snac2 (diff) | |
| download | penes-snac2-8524ace23f1ebec07fd4d51171e121b1f1e75007.tar.gz penes-snac2-8524ace23f1ebec07fd4d51171e121b1f1e75007.tar.xz penes-snac2-8524ace23f1ebec07fd4d51171e121b1f1e75007.zip | |
Hide posts from the public web for accounts with 'private' == true.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -284,6 +284,9 @@ void httpd_connection(FILE *f) | |||
| 284 | status = 404; | 284 | status = 404; |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | if (status == 403) | ||
| 288 | body = xs_str_new("<h1>403 Forbidden</h1>"); | ||
| 289 | |||
| 287 | if (status == 404) | 290 | if (status == 404) |
| 288 | body = xs_str_new("<h1>404 Not Found</h1>"); | 291 | body = xs_str_new("<h1>404 Not Found</h1>"); |
| 289 | 292 | ||