mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add ability to filter my videos by live
This commit is contained in:
parent
dfcb6f50a6
commit
1fd61899ea
46 changed files with 569 additions and 336 deletions
|
@ -11,7 +11,7 @@ function isStringArray (value: any) {
|
|||
return isArray(value) && value.every(v => typeof v === 'string')
|
||||
}
|
||||
|
||||
function isNSFWQueryValid (value: any) {
|
||||
function isBooleanBothQueryValid (value: any) {
|
||||
return value === 'true' || value === 'false' || value === 'both'
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,6 @@ function isSearchTargetValid (value: SearchTargetType) {
|
|||
export {
|
||||
isNumberArray,
|
||||
isStringArray,
|
||||
isNSFWQueryValid,
|
||||
isBooleanBothQueryValid,
|
||||
isSearchTargetValid
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue