X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-miniature.component.ts;h=ccf90af54ead80b0624c77efbf3c38be23c5eec3;hb=cf78883c70dca99fc519374d55620d9403d482be;hp=f0b0992e2ad4eb3056a7390f629f3d6c1ca73613;hpb=fa58a19819cb821a5c5a26802efd492461be9c04;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video/video-miniature.component.ts b/client/src/app/shared/video/video-miniature.component.ts index f0b0992e2..ccf90af54 100644 --- a/client/src/app/shared/video/video-miniature.component.ts +++ b/client/src/app/shared/video/video-miniature.component.ts @@ -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