diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-07 14:34:16 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-10 14:02:41 +0200 |
commit | 4f32032fed8587ea97d45e235b167e8958efd81f (patch) | |
tree | 6ec4ce2d5d05a275fb7eeaf3aee33c2b69ebc043 /shared/models/moderation/abuse | |
parent | 57f6896f67cfc570cf3605dd94b0778101b2d9b9 (diff) | |
download | PeerTube-4f32032fed8587ea97d45e235b167e8958efd81f.tar.gz PeerTube-4f32032fed8587ea97d45e235b167e8958efd81f.tar.zst PeerTube-4f32032fed8587ea97d45e235b167e8958efd81f.zip |
Add migrations
Diffstat (limited to 'shared/models/moderation/abuse')
-rw-r--r-- | shared/models/moderation/abuse/abuse.model.ts | 25 |
1 files changed, 18 insertions, 7 deletions
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 { | |||
18 | 18 | ||
19 | thumbnailPath?: string | 19 | thumbnailPath?: string |
20 | channel?: VideoChannel | 20 | channel?: VideoChannel |
21 | |||
22 | countReports: number | ||
23 | nthReport: number | ||
21 | } | 24 | } |
22 | 25 | ||
23 | export interface VideoCommentAbuse { | 26 | export interface VideoCommentAbuse { |
@@ -36,9 +39,12 @@ export interface VideoCommentAbuse { | |||
36 | 39 | ||
37 | export interface Abuse { | 40 | export interface Abuse { |
38 | id: number | 41 | id: number |
42 | |||
39 | reason: string | 43 | reason: string |
40 | predefinedReasons?: AbusePredefinedReasonsString[] | 44 | predefinedReasons?: AbusePredefinedReasonsString[] |
45 | |||
41 | reporterAccount: Account | 46 | reporterAccount: Account |
47 | flaggedAccount: Account | ||
42 | 48 | ||
43 | state: VideoConstant<AbuseState> | 49 | state: VideoConstant<AbuseState> |
44 | moderationComment?: string | 50 | moderationComment?: string |
@@ -49,13 +55,18 @@ export interface Abuse { | |||
49 | createdAt: Date | 55 | createdAt: Date |
50 | updatedAt: Date | 56 | updatedAt: Date |
51 | 57 | ||
52 | // FIXME: deprecated in 2.3, remove this | ||
53 | startAt: null | ||
54 | endAt: null | ||
55 | |||
56 | count?: number | ||
57 | nth?: number | ||
58 | |||
59 | countReportsForReporter?: number | 58 | countReportsForReporter?: number |
60 | countReportsForReportee?: number | 59 | countReportsForReportee?: number |
60 | |||
61 | // FIXME: deprecated in 2.3, remove the following properties | ||
62 | |||
63 | // // @deprecated | ||
64 | // startAt: null | ||
65 | // // @deprecated | ||
66 | // endAt: null | ||
67 | |||
68 | // // @deprecated | ||
69 | // count?: number | ||
70 | // // @deprecated | ||
71 | // nth?: number | ||
61 | } | 72 | } |