]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/blacklist/video-blacklist.model.ts
add quarantine videos feature (#1637)
[github/Chocobozzz/PeerTube.git] / shared / models / videos / blacklist / video-blacklist.model.ts
index 4bd976190107e2b8e89f3725896fa926b370feb5..68d59e4892b4138ca63a698648c7c2d3a5a28739 100644 (file)
@@ -1,19 +1,17 @@
+import { Video } from '../video.model'
+
+export enum VideoBlacklistType {
+  MANUAL = 1,
+  AUTO_BEFORE_PUBLISHED = 2
+}
+
 export interface VideoBlacklist {
   id: number
   createdAt: Date
   updatedAt: Date
   unfederated: boolean
   reason?: string
+  type: VideoBlacklistType
 
-  video: {
-    id: number
-    name: string
-    uuid: string
-    description: string
-    duration: number
-    views: number
-    likes: number
-    dislikes: number
-    nsfw: boolean
-  }
+  video: Video
 }