diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-08 17:26:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-08 17:30:48 +0200 |
commit | 883993c81ecc2388d4a4b37b29b81b6de73d264f (patch) | |
tree | f0f76995b6762b10a0c1a7ccc2b5d952f68014ea /shared/models/users/user-notification.model.ts | |
parent | 0dc647775881eb1378b213a530996cd096de24ea (diff) | |
download | PeerTube-883993c81ecc2388d4a4b37b29b81b6de73d264f.tar.gz PeerTube-883993c81ecc2388d4a4b37b29b81b6de73d264f.tar.zst PeerTube-883993c81ecc2388d4a4b37b29b81b6de73d264f.zip |
Add notification on new instance follower (server side)
Diffstat (limited to 'shared/models/users/user-notification.model.ts')
-rw-r--r-- | shared/models/users/user-notification.model.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
1 | import { FollowState } from '../actors' | ||
2 | |||
1 | export enum UserNotificationType { | 3 | export enum UserNotificationType { |
2 | NEW_VIDEO_FROM_SUBSCRIPTION = 1, | 4 | NEW_VIDEO_FROM_SUBSCRIPTION = 1, |
3 | NEW_COMMENT_ON_MY_VIDEO = 2, | 5 | NEW_COMMENT_ON_MY_VIDEO = 2, |
@@ -15,7 +17,9 @@ export enum UserNotificationType { | |||
15 | NEW_FOLLOW = 10, | 17 | NEW_FOLLOW = 10, |
16 | COMMENT_MENTION = 11, | 18 | COMMENT_MENTION = 11, |
17 | 19 | ||
18 | VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12 | 20 | VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12, |
21 | |||
22 | NEW_INSTANCE_FOLLOWER = 13 | ||
19 | } | 23 | } |
20 | 24 | ||
21 | export interface VideoInfo { | 25 | export interface VideoInfo { |
@@ -73,6 +77,7 @@ export interface UserNotification { | |||
73 | actorFollow?: { | 77 | actorFollow?: { |
74 | id: number | 78 | id: number |
75 | follower: ActorInfo | 79 | follower: ActorInfo |
80 | state: FollowState | ||
76 | following: { | 81 | following: { |
77 | type: 'account' | 'channel' | 82 | type: 'account' | 'channel' |
78 | name: string | 83 | name: string |