From: Chocobozzz Date: Mon, 27 Jun 2022 07:45:16 +0000 (+0200) Subject: Fix comment add avatar when unlogged X-Git-Tag: v4.3.0-rc.1~387 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b713976afbe47d06941222ad462bc68b3decd723;hp=7fb45bdacb6d4399f56f575301b414e49efbdf92;p=github%2FChocobozzz%2FPeerTube.git Fix comment add avatar when unlogged --- 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 { } get defaultAvatarUrl () { - if (this.account) return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) + + return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) } get avatarUrl () {