another debug

This commit is contained in:
me 2025-03-15 12:12:40 +02:00
parent 14f028e38e
commit 1172b86659

View File

@ -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;