From bf98a926863f56b9167da5ce744c51a0d7b249fc Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Mon, 6 Feb 2023 12:54:35 +0100 Subject: [PATCH] fix problem in validatePID --- routes/api/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/post.js b/routes/api/post.js index e3e301a..73d18c1 100644 --- a/routes/api/post.js +++ b/routes/api/post.js @@ -82,7 +82,7 @@ export const setup = function (router, con, server) { message: "invalid pid given" } } - PIDS[req.body.pid] = "already_used"; + PIDS[pid] = "already_used"; } function validateReplyID(rid) {