Skip to content

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

Fix channels creation creation limit count

Chocobozzz11d70211afce
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 00ae58c68c..d6dd1b8bbc 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -419,7 +419,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
}
}
- return VideoChannelModel.count(query)
+ return VideoChannelModel.unscoped().count(query)
}
static async getStats () {