]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't call watching endpoint if history is disabled
authorChocobozzz <me@florianbigard.com>
Wed, 19 Dec 2018 12:45:43 +0000 (13:45 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 19 Dec 2018 12:45:43 +0000 (13:45 +0100)
client/src/app/videos/+video-watch/video-watch.component.ts

index afbe1fe78f45f4b802c29175058e81be35784688..ef0f685c6c0594fb7613c02cbc92f3e087b3349d 100644 (file)
@@ -425,7 +425,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
       theaterMode: true,
       language: this.localeId,
 
-      userWatching: this.user ? {
+      userWatching: this.user && this.user.videosHistoryEnabled === true ? {
         url: this.videoService.getUserWatchingVideoUrl(this.video.uuid),
         authorizationHeader: this.authService.getRequestHeaderValue()
       } : undefined