diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-10 14:41:20 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-10 14:50:16 +0100 |
commit | 7a4ea932461f228ae44a173ddcd48ffb088aa023 (patch) | |
tree | 429b6fa7dae496d339a9f22e4076e39ffda97461 /shared/models/moderation/abuse | |
parent | 403c69c5a34e6db621f30c7b2bfb2b80dc8e74c1 (diff) | |
download | PeerTube-7a4ea932461f228ae44a173ddcd48ffb088aa023.tar.gz PeerTube-7a4ea932461f228ae44a173ddcd48ffb088aa023.tar.zst PeerTube-7a4ea932461f228ae44a173ddcd48ffb088aa023.zip |
Remove deprecated abuse api
Diffstat (limited to 'shared/models/moderation/abuse')
-rw-r--r-- | shared/models/moderation/abuse/abuse-create.model.ts | 8 | ||||
-rw-r--r-- | shared/models/moderation/abuse/abuse.model.ts | 12 |
2 files changed, 0 insertions, 20 deletions
diff --git a/shared/models/moderation/abuse/abuse-create.model.ts b/shared/models/moderation/abuse/abuse-create.model.ts index b0358dbb9..0e7e9587f 100644 --- a/shared/models/moderation/abuse/abuse-create.model.ts +++ b/shared/models/moderation/abuse/abuse-create.model.ts | |||
@@ -19,11 +19,3 @@ export interface AbuseCreate { | |||
19 | id: number | 19 | id: number |
20 | } | 20 | } |
21 | } | 21 | } |
22 | |||
23 | // FIXME: deprecated in 2.3. Remove it | ||
24 | export interface VideoAbuseCreate { | ||
25 | reason: string | ||
26 | predefinedReasons?: AbusePredefinedReasonsString[] | ||
27 | startAt?: number | ||
28 | endAt?: number | ||
29 | } | ||
diff --git a/shared/models/moderation/abuse/abuse.model.ts b/shared/models/moderation/abuse/abuse.model.ts index 781870b1a..6048777ff 100644 --- a/shared/models/moderation/abuse/abuse.model.ts +++ b/shared/models/moderation/abuse/abuse.model.ts | |||
@@ -60,18 +60,6 @@ export interface AdminAbuse { | |||
60 | countReportsForReportee?: number | 60 | countReportsForReportee?: number |
61 | 61 | ||
62 | countMessages: number | 62 | countMessages: number |
63 | |||
64 | // FIXME: deprecated in 2.3, remove the following properties | ||
65 | |||
66 | // @deprecated | ||
67 | startAt?: null | ||
68 | // @deprecated | ||
69 | endAt?: null | ||
70 | |||
71 | // @deprecated | ||
72 | count?: number | ||
73 | // @deprecated | ||
74 | nth?: number | ||
75 | } | 63 | } |
76 | 64 | ||
77 | export type UserVideoAbuse = Omit<AdminVideoAbuse, 'countReports' | 'nthReport'> | 65 | export type UserVideoAbuse = Omit<AdminVideoAbuse, 'countReports' | 'nthReport'> |