mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-16 14:40:44 +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.thumbnailUrl = response.authorThumbnails[2].url
|
||||||
this.channelDescription = autolinker.link(response.description)
|
this.channelDescription = autolinker.link(response.description)
|
||||||
this.relatedChannels = response.relatedChannels.items
|
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) {
|
if (response.authorBanners !== null) {
|
||||||
const bannerUrl = response.authorBanners[response.authorBanners.length - 1].url
|
const bannerUrl = response.authorBanners[response.authorBanners.length - 1].url
|
||||||
|
Loading…
Reference in New Issue
Block a user