Some minor changes to data handling error messages

and fixed a issue occuring in the forms routs that used the old
parameters for data.getdata
This commit is contained in:
2025-11-30 17:04:15 +00:00
parent 54b6f018cf
commit 3d58c5b244
3 changed files with 26 additions and 13 deletions
+4 -4
View File
@@ -68,10 +68,10 @@ router.get("/post/:post_index", (req, res) => {
config,
})
}
if (config.enable_hitcount) {
data.increment_hitcount(postID)
}
if (typeof post["deleted"] == "undefined" || post["deleted"] == false) {
else if (typeof post["deleted"] == "undefined" || post["deleted"] == false) {
if (config.enable_hitcount) {
data.increment_hitcount(postID)
}
res.render("pages/post",
{
config,