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:
parent
c5911fd347
commit
47564bbe2e
37 changed files with 269 additions and 112 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue