From 936441b9ed54202b268384ec6a307930ffb0562f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 May 2021 09:52:33 +0200 Subject: Fix non logged add comment avatar --- client/src/app/shared/shared-actor-image/actor-avatar.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'client') 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 { if (this.size) base.push(`avatar-${this.size}`) - if (this.account) base.push('account') - else base.push('channel') + if (this.channel) base.push('channel') + else base.push('account') if (type === 'initial' && this.initial) { base.push('initial') @@ -67,10 +67,9 @@ export class ActorAvatarComponent { } get defaultAvatarUrl () { - if (this.account) Account.GET_DEFAULT_AVATAR_URL() if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL() - return '' + return Account.GET_DEFAULT_AVATAR_URL() } get avatarUrl () { -- cgit v1.2.3