diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:32:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:32:40 +0200 |
commit | 557b13ae24019d9ab214bbea7eaa0f892c8f4b05 (patch) | |
tree | aa32396531acf93e3dfdb29880177813039ed77f /server/models/account/user-notification.ts | |
parent | c5407d7046168abb4098df1408e7aa84519cb61a (diff) | |
download | PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.gz PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.zst PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.zip |
Lazy load avatars
Diffstat (limited to 'server/models/account/user-notification.ts')
-rw-r--r-- | server/models/account/user-notification.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/user-notification.ts b/server/models/account/user-notification.ts index a4f97037b..f38cd7e78 100644 --- a/server/models/account/user-notification.ts +++ b/server/models/account/user-notification.ts | |||
@@ -410,7 +410,7 @@ export class UserNotificationModel extends Model<UserNotificationModel> { | |||
410 | id: this.ActorFollow.ActorFollower.Account.id, | 410 | id: this.ActorFollow.ActorFollower.Account.id, |
411 | displayName: this.ActorFollow.ActorFollower.Account.getDisplayName(), | 411 | displayName: this.ActorFollow.ActorFollower.Account.getDisplayName(), |
412 | name: this.ActorFollow.ActorFollower.preferredUsername, | 412 | name: this.ActorFollow.ActorFollower.preferredUsername, |
413 | avatar: this.ActorFollow.ActorFollower.Avatar ? { path: this.ActorFollow.ActorFollower.Avatar.getWebserverPath() } : undefined, | 413 | avatar: this.ActorFollow.ActorFollower.Avatar ? { path: this.ActorFollow.ActorFollower.Avatar.getStaticPath() } : undefined, |
414 | host: this.ActorFollow.ActorFollower.getHost() | 414 | host: this.ActorFollow.ActorFollower.getHost() |
415 | }, | 415 | }, |
416 | following: { | 416 | following: { |
@@ -446,7 +446,7 @@ export class UserNotificationModel extends Model<UserNotificationModel> { | |||
446 | 446 | ||
447 | private formatActor (accountOrChannel: AccountModel | VideoChannelModel) { | 447 | private formatActor (accountOrChannel: AccountModel | VideoChannelModel) { |
448 | const avatar = accountOrChannel.Actor.Avatar | 448 | const avatar = accountOrChannel.Actor.Avatar |
449 | ? { path: accountOrChannel.Actor.Avatar.getWebserverPath() } | 449 | ? { path: accountOrChannel.Actor.Avatar.getStaticPath() } |
450 | : undefined | 450 | : undefined |
451 | 451 | ||
452 | return { | 452 | return { |