From a55e60c0cf085e337a310cb931e4249afc809858 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Mon, 6 Feb 2023 12:57:24 +0100 Subject: [PATCH] allow replies in posts again --- routes/api/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/api/post.js b/routes/api/post.js index 73d18c1..0981f97 100644 --- a/routes/api/post.js +++ b/routes/api/post.js @@ -90,8 +90,8 @@ export const setup = function (router, con, server) { if (!rid || rid < 0) { reply_id = 0 } - if(typeof rid === "string") { - reply_id = parseInt(reply_id,10) + if(typeof rid === "string" && rid !== "") { + reply_id = parseInt(rid,10) if(isNaN(reply_id)) { throw { statusCode: 414,