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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user