X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Factivitypub%2Factor.ts;h=a6c724f26634bf5876c216048feb8a1c55d016dc;hb=84531547bc0934a2abda586d539f7455b455d488;hp=6595f11e2bb333a6911f176e17241d5c63da5419;hpb=a0eeb45f14bab539f505861cad8f5d42d9ba30cb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts index 6595f11e2..a6c724f26 100644 --- a/server/models/activitypub/actor.ts +++ b/server/models/activitypub/actor.ts @@ -570,16 +570,21 @@ export class ActorModel extends Model { icon = { type: 'Image', mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension], + height: this.Avatar.height, + width: this.Avatar.width, url: this.getAvatarUrl() } } if (this.bannerId) { - const extension = extname((this as MActorAPChannel).Banner.filename) + const banner = (this as MActorAPChannel).Banner + const extension = extname(banner.filename) image = { type: 'Image', mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension], + height: banner.height, + width: banner.width, url: this.getBannerUrl() } }