added site header in forms routes

This commit is contained in:
2026-06-01 14:07:19 +01:00
parent 5a14b125d2
commit 9aff454ec2
10 changed files with 99 additions and 163 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ router.get(`${config.site_path}/comment/:postID-:commentID`, (req,res) => {
const commentID = parseInt(req.params.commentID);
const postID = parseInt(req.params.postID);
let posts_comments = data.getdata('comments', 'id', postID)["comments"]
let posts_comments = data.getdata('comments', 'id', postID)[0]["comments"]
let comment = 1
// For loop to find the comment with matching ID
posts_comments.forEach((current_comment, index) => {