From 788fa301f24d26300d5b677f5b525354914722fa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Nov 2023 10:46:08 +0100 Subject: [PATCH] Don't send views for private videos --- client/src/assets/player/shared/peertube/peertube-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts index 0ca5a500a..708825c9f 100644 --- a/client/src/assets/player/shared/peertube/peertube-plugin.ts +++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts @@ -291,7 +291,7 @@ class PeerTubePlugin extends Plugin { saveVideoWatchHistory(this.options.videoUUID(), currentTime) } - if (!this.videoViewUrl) return Promise.resolve(true) + if (!this.videoViewUrl()) return Promise.resolve(true) const body: VideoView = { currentTime, viewEvent }