comments and captcha stuff

This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent e2ef83ec0c
commit 42aaebbd69
8 changed files with 25 additions and 28 deletions

View file

@ -9,7 +9,7 @@ let main = new Route([auth], async function (req, res, input) {
let {id} = req.query;
let { username } = input;
let comments = await db.all('SELECT * FROM comment WHERE targetType = ? AND targetId = ?', [
let comments = await db.all('SELECT * FROM comment WHERE targetType = ? AND targetId = ? ORDER BY date DESC', [
route,
id
]);