1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +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

@ -24,6 +24,10 @@ function isIdOrUUIDValid (value: string) {
return isIdValid(value) || isUUIDValid(value)
}
function isBooleanValid (value: string) {
return typeof value === 'boolean' || (typeof value === 'string' && validator.isBoolean(value))
}
// ---------------------------------------------------------------------------
export {
@ -32,5 +36,6 @@ export {
isIdValid,
isUUIDValid,
isIdOrUUIDValid,
isDateValid
isDateValid,
isBooleanValid
}