Add abuse messages/states notifications
This commit is contained in:
parent
94148c9028
commit
594d3e48d8
19 changed files with 510 additions and 48 deletions
|
@ -1,4 +1,5 @@
|
|||
import { FollowState } from '../actors'
|
||||
import { AbuseState } from '../moderation'
|
||||
|
||||
export enum UserNotificationType {
|
||||
NEW_VIDEO_FROM_SUBSCRIPTION = 1,
|
||||
|
@ -21,7 +22,11 @@ export enum UserNotificationType {
|
|||
|
||||
NEW_INSTANCE_FOLLOWER = 13,
|
||||
|
||||
AUTO_INSTANCE_FOLLOWING = 14
|
||||
AUTO_INSTANCE_FOLLOWING = 14,
|
||||
|
||||
ABUSE_STATE_CHANGE = 15,
|
||||
|
||||
ABUSE_NEW_MESSAGE = 16
|
||||
}
|
||||
|
||||
export interface VideoInfo {
|
||||
|
@ -66,6 +71,7 @@ export interface UserNotification {
|
|||
|
||||
abuse?: {
|
||||
id: number
|
||||
state: AbuseState
|
||||
|
||||
video?: VideoInfo
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue