Browse Source

Change article comment order to DESC

pull/6/head
Menci 7 years ago
parent
commit
4f6b864222
  1. 2
      modules/discussion.js

2
modules/discussion.js

@ -57,7 +57,7 @@ app.get('/article/:id', async (req, res) => {
let paginate = syzoj.utils.paginate(await ArticleComment.count(where), req.query.page, syzoj.config.page.article_comment);
let comments = await ArticleComment.query(paginate, where, [['public_time', 'asc']]);
let comments = await ArticleComment.query(paginate, where, [['public_time', 'desc']]);
for (let comment of comments) {
comment.content = await syzoj.utils.markdown(comment.content);

Loading…
Cancel
Save