From 883993c81ecc2388d4a4b37b29b81b6de73d264f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Apr 2019 17:26:01 +0200 Subject: Add notification on new instance follower (server side) --- shared/models/users/user-notification-setting.model.ts | 1 + shared/models/users/user-notification.model.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'shared/models/users') diff --git a/shared/models/users/user-notification-setting.model.ts b/shared/models/users/user-notification-setting.model.ts index 57b33e4b8..e2a882b69 100644 --- a/shared/models/users/user-notification-setting.model.ts +++ b/shared/models/users/user-notification-setting.model.ts @@ -15,4 +15,5 @@ export interface UserNotificationSetting { newUserRegistration: UserNotificationSettingValue newFollow: UserNotificationSettingValue commentMention: UserNotificationSettingValue + newInstanceFollower: UserNotificationSettingValue } diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index 19892b61a..fafc2b7d7 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts @@ -1,3 +1,5 @@ +import { FollowState } from '../actors' + export enum UserNotificationType { NEW_VIDEO_FROM_SUBSCRIPTION = 1, NEW_COMMENT_ON_MY_VIDEO = 2, @@ -15,7 +17,9 @@ export enum UserNotificationType { NEW_FOLLOW = 10, COMMENT_MENTION = 11, - VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12 + VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12, + + NEW_INSTANCE_FOLLOWER = 13 } export interface VideoInfo { @@ -73,6 +77,7 @@ export interface UserNotification { actorFollow?: { id: number follower: ActorInfo + state: FollowState following: { type: 'account' | 'channel' name: string -- cgit v1.2.3