comments and captcha stuff
This commit is contained in:
parent
e2ef83ec0c
commit
42aaebbd69
8 changed files with 25 additions and 28 deletions
|
@ -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
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue