From e0e665f0efa98f2701dd9f5529e99989680481ae Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Dec 2018 13:45:43 +0100 Subject: Don't call watching endpoint if history is disabled --- client/src/app/videos/+video-watch/video-watch.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app') 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 -- cgit v1.2.3