Skip to content

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

Ensure video is local

Chocobozzz3139d6e16d18
diff --git a/server/core/lib/views/shared/video-viewer-counters.ts b/server/core/lib/views/shared/video-viewer-counters.ts
index b398d56707..1380b75f28 100644
--- a/server/core/lib/views/shared/video-viewer-counters.ts
+++ b/server/core/lib/views/shared/video-viewer-counters.ts
@@ -206,7 +206,7 @@ export class VideoViewerCounters {
this.notifyClients(video)
// Let total viewers expire on remote instances if there are no more viewers
- if (newViewers.length !== 0 && canVideoBeFederated(video, false)) {
+ if (newViewers.length !== 0 && video.isLocal() && canVideoBeFederated(video, false)) {
await this.federateTotalViewers(video)
}
}