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:
parent
3fb378a2be
commit
33cf88ce31
|
@ -414,7 +414,7 @@ export default Vue.extend({
|
||||||
this.channelDescription = autolinker.link(response.description)
|
this.channelDescription = autolinker.link(response.description)
|
||||||
this.relatedChannels = response.relatedChannels.map((channel) => {
|
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.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
|
return channel
|
||||||
})
|
})
|
||||||
this.latestVideos = response.latestVideos
|
this.latestVideos = response.latestVideos
|
||||||
|
|
Loading…
Reference in New Issue