mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
Reverse chronos
This commit is contained in:
1 parent
79102de9d2
commit
bb05fa5325
1 file changed
+1
-1
@@ -15,7 +15,7 @@ const User = {
|
||||
// If the user is not an admin, only return comment list for the owner of
|
||||
// the comments.
|
||||
if (user && (user.hasRoles('ADMIN') || user.id === id)) {
|
||||
return Comments.getByQuery({author_id: id});
|
||||
return Comments.getByQuery({author_id: id, sort: 'REVERSE_CHRONOLOGICAL'});
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user