mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add server API actors route
This commit is contained in:
parent
ff8c5ccf09
commit
1e37d32f4b
6 changed files with 120 additions and 9 deletions
10
server/helpers/custom-validators/actor.ts
Normal file
10
server/helpers/custom-validators/actor.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { isAccountNameValid } from './accounts'
|
||||
import { isVideoChannelNameValid } from './video-channels'
|
||||
|
||||
function isActorNameValid (value: string) {
|
||||
return isAccountNameValid(value) || isVideoChannelNameValid(value)
|
||||
}
|
||||
|
||||
export {
|
||||
isActorNameValid
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue