aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/account/account.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-15 11:21:00 +0200
committerChocobozzz <me@florianbigard.com>2021-04-15 11:21:00 +0200
commit126a6352ec2b088bb1d7f882991045a3ad0d7aea (patch)
tree824e6cf757e1b24e097037e876082e3ac96a3ab0 /client/src/app/shared/shared-main/account/account.model.ts
parent5b23d4e0f87fae49fad9881f249320cf3615b47b (diff)
downloadPeerTube-126a6352ec2b088bb1d7f882991045a3ad0d7aea.tar.gz
PeerTube-126a6352ec2b088bb1d7f882991045a3ad0d7aea.tar.zst
PeerTube-126a6352ec2b088bb1d7f882991045a3ad0d7aea.zip
Don't always use a link for account avatar
Diffstat (limited to 'client/src/app/shared/shared-main/account/account.model.ts')
-rw-r--r--client/src/app/shared/shared-main/account/account.model.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/account/account.model.ts b/client/src/app/shared/shared-main/account/account.model.ts
index 17fddff09..65e6798d4 100644
--- a/client/src/app/shared/shared-main/account/account.model.ts
+++ b/client/src/app/shared/shared-main/account/account.model.ts
@@ -1,4 +1,4 @@
1import { Account as ServerAccount, ActorImage } from '@shared/models' 1import { Account as ServerAccount, Actor as ServerActor, ActorImage } from '@shared/models'
2import { Actor } from './actor.model' 2import { Actor } from './actor.model'
3 3
4export class Account extends Actor implements ServerAccount { 4export class Account extends Actor implements ServerAccount {
@@ -13,7 +13,7 @@ export class Account extends Actor implements ServerAccount {
13 13
14 userId?: number 14 userId?: number
15 15
16 static GET_ACTOR_AVATAR_URL (actor: object) { 16 static GET_ACTOR_AVATAR_URL (actor: { avatar?: { url?: string, path: string } }) {
17 return Actor.GET_ACTOR_AVATAR_URL(actor) || this.GET_DEFAULT_AVATAR_URL() 17 return Actor.GET_ACTOR_AVATAR_URL(actor) || this.GET_DEFAULT_AVATAR_URL()
18 } 18 }
19 19