allow replies in posts again
This commit is contained in:
parent
bf98a92686
commit
a55e60c0cf
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user