diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-27 09:45:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-27 09:45:16 +0200 |
commit | b713976afbe47d06941222ad462bc68b3decd723 (patch) | |
tree | 0fed61aeffb8f748cc7967724e87c06b38e55e7b /client/src | |
parent | 7fb45bdacb6d4399f56f575301b414e49efbdf92 (diff) | |
download | PeerTube-b713976afbe47d06941222ad462bc68b3decd723.tar.gz PeerTube-b713976afbe47d06941222ad462bc68b3decd723.tar.zst PeerTube-b713976afbe47d06941222ad462bc68b3decd723.zip |
Fix comment add avatar when unlogged
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/shared-actor-image/actor-avatar.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts index fa4f1e51f..fdc8268d8 100644 --- a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts +++ b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts | |||
@@ -52,8 +52,9 @@ export class ActorAvatarComponent implements OnChanges { | |||
52 | } | 52 | } |
53 | 53 | ||
54 | get defaultAvatarUrl () { | 54 | get defaultAvatarUrl () { |
55 | if (this.account) return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) | ||
56 | if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) | 55 | if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) |
56 | |||
57 | return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) | ||
57 | } | 58 | } |
58 | 59 | ||
59 | get avatarUrl () { | 60 | get avatarUrl () { |