From fb4b3f91dc1292c8ecd8a1523b49ff5bfb6035f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Nov 2020 14:08:31 +0100 Subject: Count only active lives for account limit --- server/models/video/video.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/models/video/video.ts b/server/models/video/video.ts index d33ae8a5a..a43abbc09 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1195,7 +1195,10 @@ export class VideoModel extends Model { const options = { where: { remote: false, - isLive: true + isLive: true, + state: { + [Op.ne]: VideoState.LIVE_ENDED + } }, include: [ { -- cgit v1.2.3