Add comments

This commit is contained in:
2025-09-22 16:43:08 +02:00
parent 6487384e4e
commit 45a9a4e9a1
9 changed files with 201 additions and 182 deletions
+2 -2
View File
@@ -259,7 +259,7 @@ static void endpoint_api_post(CWEB *cweb, CWEB_Request *req)
}
int post_id = (int) insert_id;
cweb_respond_redirect(req, CWEB_STR("/post?id={}"), post_id);
cweb_respond_redirect(req, cweb_format(req, "/post?id={}", post_id));
}
static void endpoint_api_comment(CWEB *cweb, CWEB_Request *req)
@@ -294,7 +294,7 @@ static void endpoint_api_comment(CWEB *cweb, CWEB_Request *req)
return;
}
cweb_respond_redirect(req, CWEB_STR("/post?id={}"), parent_post);
cweb_respond_redirect(req, cweb_format(req, "/post?id={}", parent_post));
}
static void endpoint_index(CWEB *cweb, CWEB_Request *req)