diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-19 13:45:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-19 13:45:43 +0100 |
commit | e0e665f0efa98f2701dd9f5529e99989680481ae (patch) | |
tree | a4740b9756d21fd0e8b0428a9e39bdc2bd59ebac | |
parent | 56b13bd193b076d32925f0ad14b755b250b803a8 (diff) | |
download | PeerTube-e0e665f0efa98f2701dd9f5529e99989680481ae.tar.gz PeerTube-e0e665f0efa98f2701dd9f5529e99989680481ae.tar.zst PeerTube-e0e665f0efa98f2701dd9f5529e99989680481ae.zip |
Don't call watching endpoint if history is disabled
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index afbe1fe78..ef0f685c6 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -425,7 +425,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
425 | theaterMode: true, | 425 | theaterMode: true, |
426 | language: this.localeId, | 426 | language: this.localeId, |
427 | 427 | ||
428 | userWatching: this.user ? { | 428 | userWatching: this.user && this.user.videosHistoryEnabled === true ? { |
429 | url: this.videoService.getUserWatchingVideoUrl(this.video.uuid), | 429 | url: this.videoService.getUserWatchingVideoUrl(this.video.uuid), |
430 | authorizationHeader: this.authService.getRequestHeaderValue() | 430 | authorizationHeader: this.authService.getRequestHeaderValue() |
431 | } : undefined | 431 | } : undefined |