aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-18 09:42:16 +0200
committerChocobozzz <me@florianbigard.com>2018-06-18 10:26:18 +0200
commitf5a2dc48eb80ab7842cec1da7269b5d153208689 (patch)
treeb4686c38d89511dc62de8b022a2ff5641a5d26c9 /client/src/assets/player
parentb7f1747dc75171368df6ea2ab298971a33af56ed (diff)
downloadPeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.tar.gz
PeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.tar.zst
PeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.zip
Don't send view on private video
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index fe9fc1a69..b62dcb829 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -502,6 +502,8 @@ class PeerTubePlugin extends Plugin {
502 } 502 }
503 503
504 private addViewToVideo () { 504 private addViewToVideo () {
505 if (!this.videoViewUrl) return Promise.resolve(undefined)
506
505 return fetch(this.videoViewUrl, { method: 'POST' }) 507 return fetch(this.videoViewUrl, { method: 'POST' })
506 } 508 }
507 509