Don't send views for private videos

pull/6026/head
Chocobozzz 2023-11-07 10:46:08 +01:00
parent 1ba8bbded0
commit 788fa301f2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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 }