Also format actor image for api
This commit is contained in:
parent
3f6eb26a8d
commit
1246b6d839
|
@ -105,7 +105,7 @@
|
|||
return this.channel.avatar.url
|
||||
}
|
||||
|
||||
if (this.channel.avatar.length === 0) return ''
|
||||
if (this.channel.avatars.length === 0) return ''
|
||||
|
||||
const biggestAvatar = [ ...this.channel.avatars ].sort((a1, a2) => {
|
||||
if (a1.width < a2.width) return 1
|
||||
|
|
|
@ -19,7 +19,7 @@ function formatActorImagesForAPI (images?: ActorImage[], image?: ActorImage) {
|
|||
if (!images) {
|
||||
if (!image) return []
|
||||
|
||||
return [ image ]
|
||||
return [ formatActorImageForAPI(image) ]
|
||||
}
|
||||
|
||||
return images.map(a => formatActorImageForAPI(a))
|
||||
|
|
Loading…
Reference in New Issue