Generate small versions of banners too

This commit is contained in:
Chocobozzz
2024-03-27 14:00:40 +01:00
parent aaa5acbb0c
commit 11521f231f
31 changed files with 184 additions and 345 deletions

View File

@@ -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)
: []