1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add ability to disable video comments

This commit is contained in:
Chocobozzz 2018-01-03 10:12:36 +01:00
parent c5911fd347
commit 47564bbe2e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
37 changed files with 269 additions and 112 deletions

View file

@ -30,10 +30,6 @@ function isVideoLanguageValid (value: number) {
return value === null || VIDEO_LANGUAGES[value] !== undefined
}
function isVideoNSFWValid (value: any) {
return typeof value === 'boolean' || (typeof value === 'string' && validator.isBoolean(value))
}
function isVideoDurationValid (value: string) {
return exists(value) && validator.isInt(value + '', VIDEOS_CONSTRAINTS_FIELDS.DURATION)
}
@ -131,7 +127,6 @@ export {
isVideoCategoryValid,
isVideoLicenceValid,
isVideoLanguageValid,
isVideoNSFWValid,
isVideoTruncatedDescriptionValid,
isVideoDescriptionValid,
isVideoFileInfoHashValid,