]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/objects/abuse-object.ts
Use 3 tables to represent abuses
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / objects / abuse-object.ts
similarity index 84%
rename from shared/models/activitypub/objects/video-abuse-object.ts
rename to shared/models/activitypub/objects/abuse-object.ts
index 73add8ef4479aa99922b2a87d8ec3bce6bb7e005..ad45cc064e7a04255278e640b21d8a89499cbfb2 100644 (file)
@@ -1,10 +1,12 @@
 import { ActivityFlagReasonObject } from './common-objects'
 
-export interface VideoAbuseObject {
+export interface AbuseObject {
   type: 'Flag'
   content: string
   object: string | string[]
+
   tag?: ActivityFlagReasonObject[]
+
   startAt?: number
   endAt?: number
 }