allow replies in posts again

This commit is contained in:
Mystikfluu 2023-02-06 12:57:24 +01:00
parent bf98a92686
commit a55e60c0cf

View File

@ -90,8 +90,8 @@ export const setup = function (router, con, server) {
if (!rid || rid < 0) { if (!rid || rid < 0) {
reply_id = 0 reply_id = 0
} }
if(typeof rid === "string") { if(typeof rid === "string" && rid !== "") {
reply_id = parseInt(reply_id,10) reply_id = parseInt(rid,10)
if(isNaN(reply_id)) { if(isNaN(reply_id)) {
throw { throw {
statusCode: 414, statusCode: 414,