diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-24 15:05:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:35:19 +0200 |
commit | edbc9325462ddf4536775871ebc25e06f46612d1 (patch) | |
tree | 9671dd51303e75d48d4f4f9a1df7a1960e33780d /server/types/models/moderation/abuse.ts | |
parent | 20516920d2b72c8a18bc24b9740f7176aa962da2 (diff) | |
download | PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.tar.gz PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.tar.zst PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.zip |
Add server API to abuse messages
Diffstat (limited to 'server/types/models/moderation/abuse.ts')
-rw-r--r-- | server/types/models/moderation/abuse.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/types/models/moderation/abuse.ts b/server/types/models/moderation/abuse.ts index a0bf4b08f..39ef50771 100644 --- a/server/types/models/moderation/abuse.ts +++ b/server/types/models/moderation/abuse.ts | |||
@@ -95,9 +95,15 @@ export type MAbuseFull = | |||
95 | 95 | ||
96 | // Format for API or AP object | 96 | // Format for API or AP object |
97 | 97 | ||
98 | export type MAbuseFormattable = | 98 | export type MAbuseAdminFormattable = |
99 | MAbuse & | 99 | MAbuse & |
100 | Use<'ReporterAccount', MAccountFormattable> & | 100 | Use<'ReporterAccount', MAccountFormattable> & |
101 | Use<'FlaggedAccount', MAccountFormattable> & | 101 | Use<'FlaggedAccount', MAccountFormattable> & |
102 | Use<'VideoAbuse', MVideoAbuseFormattable> & | 102 | Use<'VideoAbuse', MVideoAbuseFormattable> & |
103 | Use<'VideoCommentAbuse', MCommentAbuseFormattable> | 103 | Use<'VideoCommentAbuse', MCommentAbuseFormattable> |
104 | |||
105 | export type MAbuseUserFormattable = | ||
106 | MAbuse & | ||
107 | Use<'FlaggedAccount', MAccountFormattable> & | ||
108 | Use<'VideoAbuse', MVideoAbuseFormattable> & | ||
109 | Use<'VideoCommentAbuse', MCommentAbuseFormattable> | ||