aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/actor.ts
blob: ad129e0809e16d33337c2a153fe237b459bc9e4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { isAccountNameValid } from './accounts'
import { isVideoChannelNameValid } from './video-channels'

function isActorNameValid (value: string) {
  return isAccountNameValid(value) || isVideoChannelNameValid(value)
}

export {
  isActorNameValid
}