aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/videos.ts18
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 @@
1import { values } from 'lodash'
2import * as validator from 'validator'
3import * as Promise from 'bluebird' 1import * as Promise from 'bluebird'
4import * as express from 'express' 2import * as express from 'express'
5import 'express-validator' 3import 'express-validator'
4import { values } from 'lodash'
6import 'multer' 5import 'multer'
7 6import * as validator from 'validator'
7import { VideoRateType } from '../../../shared'
8import { logger } from '../../helpers'
8import { 9import {
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'
17import { isUserUsernameValid } from './users'
18import { isArray, exists } from './misc'
19import { VideoInstance } from '../../models' 18import { VideoInstance } from '../../models'
20import { logger } from '../../helpers'
21import { VideoRateType } from '../../../shared'
22import { isActivityPubUrlValid } from './activitypub/misc' 19import { isActivityPubUrlValid } from './activitypub/misc'
20import { exists, isArray } from './misc'
23 21
24const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS 22const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS
25const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES 23const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES