1
0
Fork 0

Don't call watching endpoint if history is disabled

This commit is contained in:
Chocobozzz 2018-12-19 13:45:43 +01:00
parent 56b13bd193
commit e0e665f0ef
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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