From 996bf0018bd0d1da8677ceae29cfa7a282851d07 Mon Sep 17 00:00:00 2001 From: deadvey Date: Wed, 24 Sep 2025 21:21:48 +0100 Subject: [PATCH] bug fix numbers should be parsed Signed-off-by: deadvey --- src/routes/standard_pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/standard_pages.js b/src/routes/standard_pages.js index 8712415..dadeb0c 100644 --- a/src/routes/standard_pages.js +++ b/src/routes/standard_pages.js @@ -60,7 +60,7 @@ router.get("/user/:username", (req, res) => { // Posts router.get("/post/:post_index", (req, res) => { - const postID = req.params.post_index + const postID = parseInt(req.params.post_index) let post = data.getdata('posts', postID) if (post == 1) { // data.getdata returns error code 1 if nothing is available res.render("partials/message", {