Don't send views for private videos
This commit is contained in:
parent
1ba8bbded0
commit
788fa301f2
|
@ -291,7 +291,7 @@ class PeerTubePlugin extends Plugin {
|
||||||
saveVideoWatchHistory(this.options.videoUUID(), currentTime)
|
saveVideoWatchHistory(this.options.videoUUID(), currentTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.videoViewUrl) return Promise.resolve(true)
|
if (!this.videoViewUrl()) return Promise.resolve(true)
|
||||||
|
|
||||||
const body: VideoView = { currentTime, viewEvent }
|
const body: VideoView = { currentTime, viewEvent }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue