aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-12 11:59:52 +0100
committerChocobozzz <me@florianbigard.com>2018-01-12 11:59:52 +0100
commita3fd560d11554073f0247f3785192cab920ae602 (patch)
tree3cff6b06e7809d43e62b8eb33a54264d4a037748
parent32b2b43c06621e384c0bd1610ef0bb9f23399be7 (diff)
downloadPeerTube-a3fd560d11554073f0247f3785192cab920ae602.tar.gz
PeerTube-a3fd560d11554073f0247f3785192cab920ae602.tar.zst
PeerTube-a3fd560d11554073f0247f3785192cab920ae602.zip
Fix tree comment rendering
Sort by updatedAt too
-rw-r--r--server/models/video/video-comment.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index fffa4bb57..c10d7c7c8 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -253,7 +253,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
253 253
254 static listThreadCommentsForApi (videoId: number, threadId: number) { 254 static listThreadCommentsForApi (videoId: number, threadId: number) {
255 const query = { 255 const query = {
256 order: [ [ 'createdAt', 'ASC' ] ], 256 order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ],
257 where: { 257 where: {
258 videoId, 258 videoId,
259 [ Sequelize.Op.or ]: [ 259 [ Sequelize.Op.or ]: [