mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-25 18:20:31 -06:00
Fix tree comment rendering
Sort by updatedAt too
This commit is contained in:
parent
32b2b43c06
commit
a3fd560d11
@ -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 ]: [
|
||||
|
Loading…
Reference in New Issue
Block a user