]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-miniature.component.ts
Limit thumbnail sizes
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.ts
index f0b0992e2ad4eb3056a7390f629f3d6c1ca73613..ccf90af54ead80b0624c77efbf3c38be23c5eec3 100644 (file)
@@ -178,6 +178,14 @@ export class VideoMiniatureComponent implements OnInit {
     return ''
   }
 
+  getAvatarUrl () {
+    if (this.ownerDisplayTypeChosen === 'account') {
+      return this.video.accountAvatarUrl
+    }
+
+    return this.video.videoChannelAvatarUrl
+  }
+
   loadActions () {
     if (this.displayVideoActions) this.showActions = true