mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Live views update
This commit is contained in:
parent
5cac83a78d
commit
a800dbf345
9 changed files with 114 additions and 25 deletions
|
@ -537,6 +537,8 @@ class LiveManager {
|
|||
|
||||
await federateVideoIfNeeded(video, false)
|
||||
|
||||
PeerTubeSocket.Instance.sendVideoViewsUpdate(video)
|
||||
|
||||
// Only keep not expired watchers
|
||||
const newWatchers = watchers.filter(w => w > notBefore)
|
||||
this.watchersPerVideo.set(videoId, newWatchers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue