mirror of https://github.com/Chocobozzz/PeerTube
Prefer short id
parent
c94ec79107
commit
148641d197
|
@ -144,7 +144,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
|||
|
||||
transcriptionWidgetOpened = false
|
||||
|
||||
private nextRecommendedVideoUUID = ''
|
||||
private nextRecommendedVideoId = ''
|
||||
private nextRecommendedVideoTitle = ''
|
||||
|
||||
private videoFileToken: string
|
||||
|
@ -243,7 +243,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
|||
|
||||
// The recommended videos's first element should be the next video
|
||||
const video = videos[0]
|
||||
this.nextRecommendedVideoUUID = video.uuid
|
||||
this.nextRecommendedVideoId = video.shortUUID
|
||||
this.nextRecommendedVideoTitle = video.name
|
||||
}
|
||||
|
||||
|
@ -629,8 +629,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
|||
return
|
||||
}
|
||||
|
||||
if (this.nextRecommendedVideoUUID) {
|
||||
this.router.navigate([ '/w', this.nextRecommendedVideoUUID ])
|
||||
if (this.nextRecommendedVideoId) {
|
||||
this.router.navigate([ '/w', this.nextRecommendedVideoId ])
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue