Don't call watching endpoint if history is disabled
This commit is contained in:
parent
56b13bd193
commit
e0e665f0ef
|
@ -425,7 +425,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
theaterMode: true,
|
theaterMode: true,
|
||||||
language: this.localeId,
|
language: this.localeId,
|
||||||
|
|
||||||
userWatching: this.user ? {
|
userWatching: this.user && this.user.videosHistoryEnabled === true ? {
|
||||||
url: this.videoService.getUserWatchingVideoUrl(this.video.uuid),
|
url: this.videoService.getUserWatchingVideoUrl(this.video.uuid),
|
||||||
authorizationHeader: this.authService.getRequestHeaderValue()
|
authorizationHeader: this.authService.getRequestHeaderValue()
|
||||||
} : undefined
|
} : undefined
|
||||||
|
|
Loading…
Reference in New Issue