aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/moderation
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-03 09:33:05 +0100
committerChocobozzz <me@florianbigard.com>2021-02-03 09:45:08 +0100
commitba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch)
tree6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /shared/extra-utils/moderation
parent29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff)
downloadPeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip
Update server dependencies
Diffstat (limited to 'shared/extra-utils/moderation')
-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,