diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-27 16:26:25 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:35:19 +0200 |
commit | 594d3e48d8a887bbf48ce4cc594c1c36c9640fb1 (patch) | |
tree | bae28fa6215a3a3c6ccd78aea6ea7e75c500a96f /shared/models | |
parent | 94148c9028829b5576a5dcbfba2c7fb9cf6443d3 (diff) | |
download | PeerTube-594d3e48d8a887bbf48ce4cc594c1c36c9640fb1.tar.gz PeerTube-594d3e48d8a887bbf48ce4cc594c1c36c9640fb1.tar.zst PeerTube-594d3e48d8a887bbf48ce4cc594c1c36c9640fb1.zip |
Add abuse messages/states notifications
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user-notification-setting.model.ts | 15 | ||||
-rw-r--r-- | shared/models/users/user-notification.model.ts | 8 |
2 files changed, 18 insertions, 5 deletions
diff --git a/shared/models/users/user-notification-setting.model.ts b/shared/models/users/user-notification-setting.model.ts index 4e2230a76..c7590fa8a 100644 --- a/shared/models/users/user-notification-setting.model.ts +++ b/shared/models/users/user-notification-setting.model.ts | |||
@@ -5,16 +5,23 @@ export enum UserNotificationSettingValue { | |||
5 | } | 5 | } |
6 | 6 | ||
7 | export interface UserNotificationSetting { | 7 | export interface UserNotificationSetting { |
8 | newVideoFromSubscription: UserNotificationSettingValue | ||
9 | newCommentOnMyVideo: UserNotificationSettingValue | ||
10 | abuseAsModerator: UserNotificationSettingValue | 8 | abuseAsModerator: UserNotificationSettingValue |
11 | videoAutoBlacklistAsModerator: UserNotificationSettingValue | 9 | videoAutoBlacklistAsModerator: UserNotificationSettingValue |
10 | newUserRegistration: UserNotificationSettingValue | ||
11 | |||
12 | newVideoFromSubscription: UserNotificationSettingValue | ||
13 | |||
12 | blacklistOnMyVideo: UserNotificationSettingValue | 14 | blacklistOnMyVideo: UserNotificationSettingValue |
13 | myVideoPublished: UserNotificationSettingValue | 15 | myVideoPublished: UserNotificationSettingValue |
14 | myVideoImportFinished: UserNotificationSettingValue | 16 | myVideoImportFinished: UserNotificationSettingValue |
15 | newUserRegistration: UserNotificationSettingValue | 17 | |
16 | newFollow: UserNotificationSettingValue | ||
17 | commentMention: UserNotificationSettingValue | 18 | commentMention: UserNotificationSettingValue |
19 | newCommentOnMyVideo: UserNotificationSettingValue | ||
20 | |||
21 | newFollow: UserNotificationSettingValue | ||
18 | newInstanceFollower: UserNotificationSettingValue | 22 | newInstanceFollower: UserNotificationSettingValue |
19 | autoInstanceFollowing: UserNotificationSettingValue | 23 | autoInstanceFollowing: UserNotificationSettingValue |
24 | |||
25 | abuseStateChange: UserNotificationSettingValue | ||
26 | abuseNewMessage: UserNotificationSettingValue | ||
20 | } | 27 | } |
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index 5f7c33976..e2f2234e4 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { FollowState } from '../actors' | 1 | import { FollowState } from '../actors' |
2 | import { AbuseState } from '../moderation' | ||
2 | 3 | ||
3 | export enum UserNotificationType { | 4 | export enum UserNotificationType { |
4 | NEW_VIDEO_FROM_SUBSCRIPTION = 1, | 5 | NEW_VIDEO_FROM_SUBSCRIPTION = 1, |
@@ -21,7 +22,11 @@ export enum UserNotificationType { | |||
21 | 22 | ||
22 | NEW_INSTANCE_FOLLOWER = 13, | 23 | NEW_INSTANCE_FOLLOWER = 13, |
23 | 24 | ||
24 | AUTO_INSTANCE_FOLLOWING = 14 | 25 | AUTO_INSTANCE_FOLLOWING = 14, |
26 | |||
27 | ABUSE_STATE_CHANGE = 15, | ||
28 | |||
29 | ABUSE_NEW_MESSAGE = 16 | ||
25 | } | 30 | } |
26 | 31 | ||
27 | export interface VideoInfo { | 32 | export interface VideoInfo { |
@@ -66,6 +71,7 @@ export interface UserNotification { | |||
66 | 71 | ||
67 | abuse?: { | 72 | abuse?: { |
68 | id: number | 73 | id: number |
74 | state: AbuseState | ||
69 | 75 | ||
70 | video?: VideoInfo | 76 | video?: VideoInfo |
71 | 77 | ||