From 51353d9a035fb6b81f903a8b5f391292841649fd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Nov 2021 10:11:20 +0100 Subject: Refactor video views Introduce viewers attribute for live videos Count views for live videos Reduce delay to see the viewer update for lives Add ability to configure video views buffer interval and view ip expiration --- shared/models/videos/video.model.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared/models/videos/video.model.ts') diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 26cb595e7..8d223cded 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -39,6 +39,9 @@ export interface Video { url: string views: number + // If live + viewers?: number + likes: number dislikes: number nsfw: boolean -- cgit v1.2.3