Skip to content

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

Fix broken image in about follows

Chocobozzza70fbf215497
diff --git a/client/src/app/+about/about-follows/follower-image.component.html b/client/src/app/+about/about-follows/follower-image.component.html
index 9ae7292c51..dd2fb1cabb 100644
--- a/client/src/app/+about/about-follows/follower-image.component.html
+++ b/client/src/app/+about/about-follows/follower-image.component.html
@@ -47,5 +47,5 @@
</defs>
</svg>
- <img [src]="avatarUrl" alt="">
+ <img *ngIf="avatarUrl" [src]="avatarUrl" alt="">
</div>
diff --git a/client/src/app/+about/about-follows/follower-image.component.ts b/client/src/app/+about/about-follows/follower-image.component.ts
index 4bbeabf71a..0093ea0b62 100644
--- a/client/src/app/+about/about-follows/follower-image.component.ts
+++ b/client/src/app/+about/about-follows/follower-image.component.ts
@@ -1,3 +1,4 @@
+import { CommonModule } from '@angular/common'
import { Component, OnInit, inject } from '@angular/core'
import { ServerService } from '@app/core'
import { Actor } from '@app/shared/shared-main/account/actor.model'
@@ -6,7 +7,10 @@ import { Actor } from '@app/shared/shared-main/account/actor.model'
selector: 'my-follower-image',
templateUrl: './follower-image.component.html',
styleUrls: [ './follower-image.component.scss' ],
- standalone: true
+ standalone: true,
+ imports: [
+ CommonModule
+ ]
})
export class FollowerImageComponent implements OnInit {
private server = inject(ServerService)