diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-06 08:48:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-06 08:48:06 +0200 |
commit | ceba0e65d4738d3e882fcd4790b6d6963aa82391 (patch) | |
tree | 0ba8cace00e34e8beb1ba865e2a6bd464baafc4e /server | |
parent | fde37dc99c0ca43021ac3d1b3537f095ee6114b7 (diff) | |
download | PeerTube-ceba0e65d4738d3e882fcd4790b6d6963aa82391.tar.gz PeerTube-ceba0e65d4738d3e882fcd4790b6d6963aa82391.tar.zst PeerTube-ceba0e65d4738d3e882fcd4790b6d6963aa82391.zip |
Fix lint
Diffstat (limited to 'server')
-rw-r--r-- | server/middlewares/validators/videos/video-comments.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { body, param } from 'express-validator' | 2 | import { body, param } from 'express-validator' |
3 | import { MUserAccountUrl } from '@server/typings/models' | ||
3 | import { UserRight } from '../../../../shared' | 4 | import { UserRight } from '../../../../shared' |
4 | import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc' | 5 | import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc' |
5 | import { isValidVideoCommentText } from '../../../helpers/custom-validators/video-comments' | 6 | import { isValidVideoCommentText } from '../../../helpers/custom-validators/video-comments' |
6 | import { logger } from '../../../helpers/logger' | 7 | import { logger } from '../../../helpers/logger' |
8 | import { doesVideoExist } from '../../../helpers/middlewares' | ||
9 | import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation' | ||
10 | import { Hooks } from '../../../lib/plugins/hooks' | ||
7 | import { VideoCommentModel } from '../../../models/video/video-comment' | 11 | import { VideoCommentModel } from '../../../models/video/video-comment' |
12 | import { MCommentOwnerVideoReply, MVideo, MVideoFullLight, MVideoId } from '../../../typings/models/video' | ||
8 | import { areValidationErrors } from '../utils' | 13 | import { areValidationErrors } from '../utils' |
9 | import { Hooks } from '../../../lib/plugins/hooks' | ||
10 | import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation' | ||
11 | import { doesVideoExist } from '../../../helpers/middlewares' | ||
12 | import { MCommentOwner, MVideo, MVideoFullLight, MVideoId, MCommentOwnerVideoReply } from '../../../typings/models/video' | ||
13 | import { MUser, MUserAccountUrl } from '@server/typings/models' | ||
14 | 14 | ||
15 | const listVideoCommentThreadsValidator = [ | 15 | const listVideoCommentThreadsValidator = [ |
16 | param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'), | 16 | param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'), |