From 33cf88ce31c02b485951b6fdcdaf33969db78cdc Mon Sep 17 00:00:00 2001 From: MarmadileManteater Date: Mon, 15 Aug 2022 19:14:59 -0400 Subject: [PATCH] Mapping the invidious API field to the view (#2483) Added a line to map the field "authorId" to "channelId" on the featured channels that come from the Invidious API because the Channel view expects related channels to have the property "channelId". This is related to FreeTubeApp#2481. --- src/renderer/views/Channel/Channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index c8bc6e7f5..a614027a6 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -414,7 +414,7 @@ export default Vue.extend({ this.channelDescription = autolinker.link(response.description) this.relatedChannels = response.relatedChannels.map((channel) => { channel.authorThumbnails[channel.authorThumbnails.length - 1].url = channel.authorThumbnails[channel.authorThumbnails.length - 1].url.replace('https://yt3.ggpht.com', `${this.currentInvidiousInstance}/ggpht/`) - + channel.channelId = channel.authorId return channel }) this.latestVideos = response.latestVideos