]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix comment add avatar when unlogged
authorChocobozzz <me@florianbigard.com>
Mon, 27 Jun 2022 07:45:16 +0000 (09:45 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 27 Jun 2022 07:45:16 +0000 (09:45 +0200)
client/src/app/shared/shared-actor-image/actor-avatar.component.ts

index fa4f1e51f99678d04e2f3650119d93854fa8073c..fdc8268d88b36927af0b85020bd1634cc16e7e86 100644 (file)
@@ -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 () {