From ba5a8d89bbf049e4afc41543bcc072cccdb02669 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Feb 2021 09:33:05 +0100 Subject: Update server dependencies --- shared/extra-utils/moderation/abuses.ts | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'shared/extra-utils/moderation') 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: { }) { const path = '/api/v1/abuses' - const video = options.videoId ? { - id: options.videoId, - startAt: options.startAt, - endAt: options.endAt - } : undefined - - const comment = options.commentId ? { - id: options.commentId - } : undefined - - const account = options.accountId ? { - id: options.accountId - } : undefined + const video = options.videoId + ? { + id: options.videoId, + startAt: options.startAt, + endAt: options.endAt + } + : undefined + + const comment = options.commentId + ? { id: options.commentId } + : undefined + + const account = options.accountId + ? { id: options.accountId } + : undefined const body = { account, -- cgit v1.2.3