diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-18 09:42:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-18 10:26:18 +0200 |
commit | f5a2dc48eb80ab7842cec1da7269b5d153208689 (patch) | |
tree | b4686c38d89511dc62de8b022a2ff5641a5d26c9 /client/src/assets | |
parent | b7f1747dc75171368df6ea2ab298971a33af56ed (diff) | |
download | PeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.tar.gz PeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.tar.zst PeerTube-f5a2dc48eb80ab7842cec1da7269b5d153208689.zip |
Don't send view on private video
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 2 |
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 | ||