diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-17 16:16:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-17 16:23:13 +0200 |
commit | 5e0dbb3e52797cdea7a9069a9dd605c8f84034dd (patch) | |
tree | d885f6f1e20c201d7493cd0cd7220416f5a71d01 /server/models/video/video-comment.ts | |
parent | 82eb78504ff6b8ed06aa28de48930fe0f21541fe (diff) | |
download | PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.gz PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.zst PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.zip |
Fix users stats
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index 2d60c6a30..1d3178164 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -683,11 +683,11 @@ export class VideoCommentModel extends Model<Partial<AttributesOnly<VideoComment | |||
683 | const totalLocalVideoComments = await VideoCommentModel.count({ | 683 | const totalLocalVideoComments = await VideoCommentModel.count({ |
684 | include: [ | 684 | include: [ |
685 | { | 685 | { |
686 | model: AccountModel, | 686 | model: AccountModel.unscoped(), |
687 | required: true, | 687 | required: true, |
688 | include: [ | 688 | include: [ |
689 | { | 689 | { |
690 | model: ActorModel, | 690 | model: ActorModel.unscoped(), |
691 | required: true, | 691 | required: true, |
692 | where: { | 692 | where: { |
693 | serverId: null | 693 | serverId: null |