From 8ce1ba6e3efe0a688d6a0b57e8201cde33ad7aac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Apr 2019 10:42:07 +0200 Subject: Add new instance follower notification in client --- client/src/app/shared/users/user-notification.model.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/shared/users/user-notification.model.ts') diff --git a/client/src/app/shared/users/user-notification.model.ts b/client/src/app/shared/users/user-notification.model.ts index 76b983152..72fc3e7b4 100644 --- a/client/src/app/shared/users/user-notification.model.ts +++ b/client/src/app/shared/users/user-notification.model.ts @@ -59,6 +59,7 @@ export class UserNotification implements UserNotificationServer { accountUrl?: string videoImportIdentifier?: string videoImportUrl?: string + instanceFollowUrl?: string constructor (hash: UserNotificationServer) { this.id = hash.id @@ -141,6 +142,10 @@ export class UserNotification implements UserNotificationServer { case UserNotificationType.NEW_FOLLOW: this.accountUrl = this.buildAccountUrl(this.actorFollow.follower) break + + case UserNotificationType.NEW_INSTANCE_FOLLOWER: + this.instanceFollowUrl = '/admin/follows/followers-list' + break } } catch (err) { console.error(err) -- cgit v1.2.3