From 148641d1979c31c592b0ef77637d61b621908b1a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Nov 2024 15:13:14 +0100 Subject: [PATCH] Prefer short id --- .../src/app/+videos/+video-watch/video-watch.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 dae8b046e..8ccae3f77 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -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 ]) } }) }