From: Chocobozzz Date: Wed, 19 Dec 2018 12:45:43 +0000 (+0100) Subject: Don't call watching endpoint if history is disabled X-Git-Tag: v1.2.0-rc.1~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0e665f0efa98f2701dd9f5529e99989680481ae;p=oweals%2Fpeertube.git Don't call watching endpoint if history is disabled --- 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 { 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