mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Generate small versions of banners too
This commit is contained in:
@@ -13,7 +13,10 @@ export abstract class ActorExporter <T> extends AbstractUserExporter<T> {
|
||||
|
||||
name: actor.preferredUsername,
|
||||
|
||||
avatars: this.exportActorImageJSON(actor.Avatars),
|
||||
avatars: actor.hasImage(ActorImageType.AVATAR)
|
||||
? this.exportActorImageJSON(actor.Avatars)
|
||||
: [],
|
||||
|
||||
banners: actor.hasImage(ActorImageType.BANNER)
|
||||
? this.exportActorImageJSON(actor.Banners)
|
||||
: []
|
||||
|
||||
Reference in New Issue
Block a user