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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user