aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-05 09:52:33 +0200
committerChocobozzz <me@florianbigard.com>2021-05-05 09:52:33 +0200
commit936441b9ed54202b268384ec6a307930ffb0562f (patch)
treee9c44babfbff1c1122953915ee1c8ee2e27df237 /client/src
parent06ec4bdd15cdd1e938ec1744784cd2993aed9809 (diff)
downloadPeerTube-936441b9ed54202b268384ec6a307930ffb0562f.tar.gz
PeerTube-936441b9ed54202b268384ec6a307930ffb0562f.tar.zst
PeerTube-936441b9ed54202b268384ec6a307930ffb0562f.zip
Fix non logged add comment avatar
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/shared-actor-image/actor-avatar.component.ts7
1 files changed, 3 insertions, 4 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 e74dd1634..b06c2bae6 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
@@ -55,8 +55,8 @@ export class ActorAvatarComponent {
55 55
56 if (this.size) base.push(`avatar-${this.size}`) 56 if (this.size) base.push(`avatar-${this.size}`)
57 57
58 if (this.account) base.push('account') 58 if (this.channel) base.push('channel')
59 else base.push('channel') 59 else base.push('account')
60 60
61 if (type === 'initial' && this.initial) { 61 if (type === 'initial' && this.initial) {
62 base.push('initial') 62 base.push('initial')
@@ -67,10 +67,9 @@ export class ActorAvatarComponent {
67 } 67 }
68 68
69 get defaultAvatarUrl () { 69 get defaultAvatarUrl () {
70 if (this.account) Account.GET_DEFAULT_AVATAR_URL()
71 if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL() 70 if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL()
72 71
73 return '' 72 return Account.GET_DEFAULT_AVATAR_URL()
74 } 73 }
75 74
76 get avatarUrl () { 75 get avatarUrl () {