1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Fix optional privacy in upload endpoint

This commit is contained in:
Chocobozzz 2019-04-25 13:55:28 +02:00
parent 47f6409bb8
commit 2b4dd7e26d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 130 additions and 145 deletions

View file

@ -1,10 +1,9 @@
import 'express-validator'
import * as validator from 'validator'
import { UserNotificationSettingValue, UserRole } from '../../../shared'
import { UserRole } from '../../../shared'
import { CONSTRAINTS_FIELDS, NSFW_POLICY_TYPES } from '../../initializers/constants'
import { exists, isFileValid, isBooleanValid } from './misc'
import { exists, isBooleanValid, isFileValid } from './misc'
import { values } from 'lodash'
import { UserAdminFlag } from '../../../shared/models/users/user-flag.model'
const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS