diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-09 15:00:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-09 16:31:42 +0100 |
commit | a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32 (patch) | |
tree | b7f814ee0dae543a6f2937b9ab5154cfeff3e986 /server/lib/live-manager.ts | |
parent | 5cac83a78d6ba5212755fafce2ed25f7c74b04e5 (diff) | |
download | PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.gz PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.zst PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.zip |
Live views update
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r-- | server/lib/live-manager.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts index 5d9b68756..2fb4b774c 100644 --- a/server/lib/live-manager.ts +++ b/server/lib/live-manager.ts | |||
@@ -537,6 +537,8 @@ class LiveManager { | |||
537 | 537 | ||
538 | await federateVideoIfNeeded(video, false) | 538 | await federateVideoIfNeeded(video, false) |
539 | 539 | ||
540 | PeerTubeSocket.Instance.sendVideoViewsUpdate(video) | ||
541 | |||
540 | // Only keep not expired watchers | 542 | // Only keep not expired watchers |
541 | const newWatchers = watchers.filter(w => w > notBefore) | 543 | const newWatchers = watchers.filter(w => w > notBefore) |
542 | this.watchersPerVideo.set(videoId, newWatchers) | 544 | this.watchersPerVideo.set(videoId, newWatchers) |