]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/users/user-notification.model.ts
Fix hls tests
[github/Chocobozzz/PeerTube.git] / shared / models / users / user-notification.model.ts
index 11d96fd50a13d112523a55621a67c830bcd4cfc9..e2f2234e48f642f2e85de19745128be106e74423 100644 (file)
@@ -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
 
@@ -73,7 +79,9 @@ export interface UserNotification {
       threadId: number
 
       video: {
+        id: number
         uuid: string
+        name: string
       }
     }