From 0d776af6c8a9115d050b57a2c424edcb6d8e159c Mon Sep 17 00:00:00 2001 From: Shpingalet007 <22795961+shpingalet007@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:47:06 +0100 Subject: [PATCH 1/2] Fix archived server used in views registrations --- client/src/standalone/videos/shared/player-manager-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/standalone/videos/shared/player-manager-options.ts b/client/src/standalone/videos/shared/player-manager-options.ts index 2de9884ca58..06cb1b022d2 100644 --- a/client/src/standalone/videos/shared/player-manager-options.ts +++ b/client/src/standalone/videos/shared/player-manager-options.ts @@ -212,7 +212,7 @@ export class PlayerManagerOptions { //videoCaptions, inactivityTimeout: 2500, - videoViewUrl: this.videoFetcher.getVideoViewsUrl(video.uuid, video.host), + videoViewUrl: this.videoFetcher.getVideoViewsUrl(video.uuid, video.from), videoShortUUID: video.shortUUID, videoUUID: video.uuid, From a5e1502b902795297240da92f091cd4f69cfc059 Mon Sep 17 00:00:00 2001 From: Shpingalet007 <22795961+shpingalet007@users.noreply.github.com> Date: Tue, 6 Feb 2024 15:02:27 +0100 Subject: [PATCH 2/2] Fix protocol not set in getVideoViewsUrl --- client/src/standalone/videos/shared/video-fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/standalone/videos/shared/video-fetcher.ts b/client/src/standalone/videos/shared/video-fetcher.ts index 7b95bc004da..2c2f54564b1 100644 --- a/client/src/standalone/videos/shared/video-fetcher.ts +++ b/client/src/standalone/videos/shared/video-fetcher.ts @@ -82,7 +82,7 @@ export class VideoFetcher { } getVideoViewsUrl (videoUUID: string, host: string) { - return this.getVideoUrl(videoUUID, host) + '/views' + return 'https://' + this.getVideoUrl(videoUUID, host) + '/views' } private loadVideoInfo (videoId: string, host: string): Promise {