From 4f32032fed8587ea97d45e235b167e8958efd81f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Jul 2020 14:34:16 +0200 Subject: Add migrations --- shared/models/moderation/abuse/abuse.model.ts | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'shared/models/moderation/abuse') diff --git a/shared/models/moderation/abuse/abuse.model.ts b/shared/models/moderation/abuse/abuse.model.ts index a120803e6..086911ad5 100644 --- a/shared/models/moderation/abuse/abuse.model.ts +++ b/shared/models/moderation/abuse/abuse.model.ts @@ -18,6 +18,9 @@ export interface VideoAbuse { thumbnailPath?: string channel?: VideoChannel + + countReports: number + nthReport: number } export interface VideoCommentAbuse { @@ -36,9 +39,12 @@ export interface VideoCommentAbuse { export interface Abuse { id: number + reason: string predefinedReasons?: AbusePredefinedReasonsString[] + reporterAccount: Account + flaggedAccount: Account state: VideoConstant moderationComment?: string @@ -49,13 +55,18 @@ export interface Abuse { createdAt: Date updatedAt: Date - // FIXME: deprecated in 2.3, remove this - startAt: null - endAt: null - - count?: number - nth?: number - countReportsForReporter?: number countReportsForReportee?: number + + // FIXME: deprecated in 2.3, remove the following properties + + // // @deprecated + // startAt: null + // // @deprecated + // endAt: null + + // // @deprecated + // count?: number + // // @deprecated + // nth?: number } -- cgit v1.2.3