]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/blacklist/video-blacklist.model.ts
rename blacklist to block/blocklist, merge block and auto-block views
[github/Chocobozzz/PeerTube.git] / shared / models / videos / blacklist / video-blacklist.model.ts
index 4bd976190107e2b8e89f3725896fa926b370feb5..e6090b1e93adc631080d6a9ac99f62802d1d794c 100644 (file)
@@ -1,19 +1,18 @@
-export interface VideoBlacklist {
+import { Video } from '../video.model'
+
+export enum VideoBlockType {
+  MANUAL = 1,
+  AUTO_BEFORE_PUBLISHED = 2
+}
+
+export interface VideoBlocklist {
   id: number
-  createdAt: Date
-  updatedAt: Date
   unfederated: boolean
   reason?: string
+  type: VideoBlockType
+
+  video: Video
 
-  video: {
-    id: number
-    name: string
-    uuid: string
-    description: string
-    duration: number
-    views: number
-    likes: number
-    dislikes: number
-    nsfw: boolean
-  }
+  createdAt: Date
+  updatedAt: Date
 }