Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix tree comment rendering

Chocobozzza3fd560d1155
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index fffa4bb57d..c10d7c7c8c 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> {
static listThreadCommentsForApi (videoId: number, threadId: number) {
const query = {
- order: [ [ 'createdAt', 'ASC' ] ],
+ order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ],
where: {
videoId,
[ Sequelize.Op.or ]: [