mirror of https://github.com/Chocobozzz/PeerTube
Don't call watching endpoint if history is disabled
parent
56b13bd193
commit
e0e665f0ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue