Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't call watching endpoint if history is disabled

Chocobozzze0e665f0efa9
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 afbe1fe78f..ef0f685c6c 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