Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix comment add avatar when unlogged

Chocobozzzb713976afbe4
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 fa4f1e51f9..fdc8268d88 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 () {