diff options
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index c97c9a2ad..07aadadb1 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -1,25 +1,23 @@ | |||
1 | import { values } from 'lodash' | ||
2 | import * as validator from 'validator' | ||
3 | import * as Promise from 'bluebird' | 1 | import * as Promise from 'bluebird' |
4 | import * as express from 'express' | 2 | import * as express from 'express' |
5 | import 'express-validator' | 3 | import 'express-validator' |
4 | import { values } from 'lodash' | ||
6 | import 'multer' | 5 | import 'multer' |
7 | 6 | import * as validator from 'validator' | |
7 | import { VideoRateType } from '../../../shared' | ||
8 | import { logger } from '../../helpers' | ||
8 | import { | 9 | import { |
9 | CONSTRAINTS_FIELDS, | 10 | CONSTRAINTS_FIELDS, |
11 | database as db, | ||
10 | VIDEO_CATEGORIES, | 12 | VIDEO_CATEGORIES, |
11 | VIDEO_LICENCES, | ||
12 | VIDEO_LANGUAGES, | 13 | VIDEO_LANGUAGES, |
13 | VIDEO_RATE_TYPES, | 14 | VIDEO_LICENCES, |
14 | VIDEO_PRIVACIES, | 15 | VIDEO_PRIVACIES, |
15 | database as db | 16 | VIDEO_RATE_TYPES |
16 | } from '../../initializers' | 17 | } from '../../initializers' |
17 | import { isUserUsernameValid } from './users' | ||
18 | import { isArray, exists } from './misc' | ||
19 | import { VideoInstance } from '../../models' | 18 | import { VideoInstance } from '../../models' |
20 | import { logger } from '../../helpers' | ||
21 | import { VideoRateType } from '../../../shared' | ||
22 | import { isActivityPubUrlValid } from './activitypub/misc' | 19 | import { isActivityPubUrlValid } from './activitypub/misc' |
20 | import { exists, isArray } from './misc' | ||
23 | 21 | ||
24 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS | 22 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS |
25 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES | 23 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES |