aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/moderation/abuses.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/moderation/abuses.ts')
-rw-r--r--shared/extra-utils/moderation/abuses.ts28
1 files changed, 15 insertions, 13 deletions
diff --git a/shared/extra-utils/moderation/abuses.ts b/shared/extra-utils/moderation/abuses.ts
index cb6ca46ef..c0fda722f 100644
--- a/shared/extra-utils/moderation/abuses.ts
+++ b/shared/extra-utils/moderation/abuses.ts
@@ -21,19 +21,21 @@ function reportAbuse (options: {
21}) { 21}) {
22 const path = '/api/v1/abuses' 22 const path = '/api/v1/abuses'
23 23
24 const video = options.videoId ? { 24 const video = options.videoId
25 id: options.videoId, 25 ? {
26 startAt: options.startAt, 26 id: options.videoId,
27 endAt: options.endAt 27 startAt: options.startAt,
28 } : undefined 28 endAt: options.endAt
29 29 }
30 const comment = options.commentId ? { 30 : undefined
31 id: options.commentId 31
32 } : undefined 32 const comment = options.commentId
33 33 ? { id: options.commentId }
34 const account = options.accountId ? { 34 : undefined
35 id: options.accountId 35
36 } : undefined 36 const account = options.accountId
37 ? { id: options.accountId }
38 : undefined
37 39
38 const body = { 40 const body = {
39 account, 41 account,