From 1172b86659d057e40ce87a973884ee663c2fa43c Mon Sep 17 00:00:00 2001 From: me Date: Sat, 15 Mar 2025 12:12:40 +0200 Subject: [PATCH] another debug --- backend/src/api.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/api.mjs b/backend/src/api.mjs index a9512fe..230f90b 100644 --- a/backend/src/api.mjs +++ b/backend/src/api.mjs @@ -22,12 +22,13 @@ router.post('/:site/*', utils.limiter(20), (req, res) => { return; } - let comment = { + const comment = { user: utils.escapeHtml(req.body.name) || "Anonymous", user_website: utils.escapeHtml(req.body.website) || null, message: utils.escapeHtml(req.body.message), reply_to: req.body.reply_to || null, }; + console.log(comment); // validation const user_token = req.body.token;