aboutsummaryrefslogtreecommitdiff
path: root/src/clog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/clog.c')
-rw-r--r--src/clog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/clog.c b/src/clog.c
index edd9f2a..d4eeb36 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -269,9 +269,8 @@ render_posts_query(struct post_request *post_req) {
);
} else { // post_req->type == HTML
rows = kore_pgsql_ntuples(&sql);
- // FIXME: add test for this:
- // if (post_req->resource && rows == 0) {
- if (rows == 0) {
+ // TODO: Add test for this; When database is empty, don't return 404 for base request.
+ if (post_req->resource && rows == 0) {
post_req->resp_status = HTTP_STATUS_NOT_FOUND;
goto out;
}