More robust new instance follower notification

This commit is contained in:
Chocobozzz 2019-10-25 09:45:38 +02:00
parent ab67d3e8fd
commit ce78f1f6f0
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -107,8 +107,8 @@
<my-global-icon iconName="users"></my-global-icon>
<div class="message">
Your instance has <a (click)="markAsRead(notification)" [routerLink]="notification.instanceFollowUrl">a new follower</a> ({{ notification.actorFollow.follower.host }})
<ng-container *ngIf="notification.actorFollow.state === 'pending'"> awaiting your approval</ng-container>
Your instance has <a (click)="markAsRead(notification)" [routerLink]="notification.instanceFollowUrl">a new follower</a> ({{ notification.actorFollow?.follower.host }})
<ng-container *ngIf="notification.actorFollow?.state === 'pending'"> awaiting your approval</ng-container>
</div>
</ng-container>