]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-comment.ts
Send account activitypub update events
[github/Chocobozzz/PeerTube.git] / server / models / video / video-comment.ts
index d381ccafa6e352248cc04296a6e8c66b8f4b30f0..63675c20bf688abde380b46fc6820a30c6c782c2 100644 (file)
@@ -214,7 +214,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
 
   static listThreadCommentsForApi (videoId: number, threadId: number) {
     const query = {
-      order: [ [ 'id', 'ASC' ] ],
+      order: [ [ 'createdAt', 'ASC' ] ],
       where: {
         videoId,
         [ Sequelize.Op.or ]: [