]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/moderation/abuse/abuse-create.model.ts
Remove deprecated abuse api
[github/Chocobozzz/PeerTube.git] / shared / models / moderation / abuse / abuse-create.model.ts
index c0d04e46d5d8da9b73d15bbc193cd280bcd11dcb..0e7e9587f7fadeb3d5a9562c5ae21b0ba435454c 100644 (file)
@@ -1,11 +1,14 @@
 import { AbusePredefinedReasonsString } from './abuse-reason.model'
 
 export interface AbuseCreate {
-  accountId: number
-
   reason: string
+
   predefinedReasons?: AbusePredefinedReasonsString[]
 
+  account?: {
+    id: number
+  }
+
   video?: {
     id: number
     startAt?: number
@@ -16,11 +19,3 @@ export interface AbuseCreate {
     id: number
   }
 }
-
-// FIXME: deprecated in 2.3. Remove it
-export interface VideoAbuseCreate {
-  reason: string
-  predefinedReasons?: AbusePredefinedReasonsString[]
-  startAt?: number
-  endAt?: number
-}