aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/activitypub/actor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/activitypub/actor.ts')
-rw-r--r--server/models/activitypub/actor.ts7
1 files changed, 6 insertions, 1 deletions
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 {
570 icon = { 570 icon = {
571 type: 'Image', 571 type: 'Image',
572 mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension], 572 mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension],
573 height: this.Avatar.height,
574 width: this.Avatar.width,
573 url: this.getAvatarUrl() 575 url: this.getAvatarUrl()
574 } 576 }
575 } 577 }
576 578
577 if (this.bannerId) { 579 if (this.bannerId) {
578 const extension = extname((this as MActorAPChannel).Banner.filename) 580 const banner = (this as MActorAPChannel).Banner
581 const extension = extname(banner.filename)
579 582
580 image = { 583 image = {
581 type: 'Image', 584 type: 'Image',
582 mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension], 585 mediaType: MIMETYPES.IMAGE.EXT_MIMETYPE[extension],
586 height: banner.height,
587 width: banner.width,
583 url: this.getBannerUrl() 588 url: this.getBannerUrl()
584 } 589 }
585 } 590 }