From: Chocobozzz Date: Wed, 6 May 2020 06:48:06 +0000 (+0200) Subject: Fix lint X-Git-Tag: v2.2.0-rc.1~81 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ceba0e65d4738d3e882fcd4790b6d6963aa82391;p=oweals%2Fpeertube.git Fix lint --- diff --git a/server/middlewares/validators/videos/video-comments.ts b/server/middlewares/validators/videos/video-comments.ts index 8fa2d8561..4846a5e9e 100644 --- a/server/middlewares/validators/videos/video-comments.ts +++ b/server/middlewares/validators/videos/video-comments.ts @@ -1,16 +1,16 @@ import * as express from 'express' import { body, param } from 'express-validator' +import { MUserAccountUrl } from '@server/typings/models' import { UserRight } from '../../../../shared' import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc' import { isValidVideoCommentText } from '../../../helpers/custom-validators/video-comments' import { logger } from '../../../helpers/logger' +import { doesVideoExist } from '../../../helpers/middlewares' +import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation' +import { Hooks } from '../../../lib/plugins/hooks' import { VideoCommentModel } from '../../../models/video/video-comment' +import { MCommentOwnerVideoReply, MVideo, MVideoFullLight, MVideoId } from '../../../typings/models/video' import { areValidationErrors } from '../utils' -import { Hooks } from '../../../lib/plugins/hooks' -import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation' -import { doesVideoExist } from '../../../helpers/middlewares' -import { MCommentOwner, MVideo, MVideoFullLight, MVideoId, MCommentOwnerVideoReply } from '../../../typings/models/video' -import { MUser, MUserAccountUrl } from '@server/typings/models' const listVideoCommentThreadsValidator = [ param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'),