More robust new instance follower notification
authorChocobozzz <me@florianbigard.com>
Fri, 25 Oct 2019 07:45:38 +0000 (09:45 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 25 Oct 2019 07:45:38 +0000 (09:45 +0200)
client/src/app/shared/users/user-notifications.component.html

index a0f8e6df5170f06f99cbbcd88676760a713c72b8..184befbde3deb01d3709661c3a7d2305ddf43b2a 100644 (file)
         <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>