mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-15 22:20:19 +01:00
fix featured icons not loading (#1552)
Co-authored-by: Preston <freetubeapp@protonmail.com>
This commit is contained in:
parent
539b084217
commit
11bb81795d
@ -259,6 +259,14 @@ export default Vue.extend({
|
||||
this.thumbnailUrl = response.authorThumbnails[2].url
|
||||
this.channelDescription = autolinker.link(response.description)
|
||||
this.relatedChannels = response.relatedChannels.items
|
||||
this.relatedChannels.forEach(relatedChannel => {
|
||||
relatedChannel.authorThumbnails.map(thumbnail => {
|
||||
if (!thumbnail.url.includes('https')) {
|
||||
thumbnail.url = `https:${thumbnail.url}`
|
||||
}
|
||||
return thumbnail
|
||||
})
|
||||
})
|
||||
|
||||
if (response.authorBanners !== null) {
|
||||
const bannerUrl = response.authorBanners[response.authorBanners.length - 1].url
|
||||
|
Loading…
Reference in New Issue
Block a user