From: Chocobozzz Date: Fri, 12 Jan 2018 10:59:52 +0000 (+0100) Subject: Fix tree comment rendering X-Git-Tag: v0.0.1-alpha~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3fd560d11554073f0247f3785192cab920ae602;p=oweals%2Fpeertube.git Fix tree comment rendering Sort by updatedAt too --- 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 { static listThreadCommentsForApi (videoId: number, threadId: number) { const query = { - order: [ [ 'createdAt', 'ASC' ] ], + order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ], where: { videoId, [ Sequelize.Op.or ]: [