]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-actor-image/actor-avatar.component.ts
Don't display alt for actor images
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-actor-image / actor-avatar.component.ts
index a52e68a176614f856e4823f89bf0b83194512df5..8e6ad4015510d2b41452800f8f0b3ad181e5ff64 100644 (file)
@@ -43,20 +43,17 @@ export class ActorAvatarComponent implements OnInit, OnChanges {
   }
 
   classes: string[] = []
-  alt: string
   defaultAvatarUrl: string
   avatarUrl: string
 
   ngOnInit () {
     this.buildDefaultAvatarUrl()
 
-    this.buildAlt()
     this.buildAvatarUrl()
     this.buildClasses()
   }
 
   ngOnChanges () {
-    this.buildAlt()
     this.buildAvatarUrl()
     this.buildClasses()
   }
@@ -81,12 +78,6 @@ export class ActorAvatarComponent implements OnInit, OnChanges {
     }
   }
 
-  private buildAlt () {
-    if (this.isAccount()) this.alt = $localize`Account avatar`
-    else if (this.isChannel()) this.alt = $localize`Channel avatar`
-    else this.alt = ''
-  }
-
   private buildDefaultAvatarUrl () {
     this.defaultAvatarUrl = this.isChannel()
       ? VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber())