aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/actor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/actor.ts')
-rw-r--r--server/helpers/custom-validators/actor.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/actor.ts b/server/helpers/custom-validators/actor.ts
new file mode 100644
index 000000000..ad129e080
--- /dev/null
+++ b/server/helpers/custom-validators/actor.ts
@@ -0,0 +1,10 @@
1import { isAccountNameValid } from './accounts'
2import { isVideoChannelNameValid } from './video-channels'
3
4function isActorNameValid (value: string) {
5 return isAccountNameValid(value) || isVideoChannelNameValid(value)
6}
7
8export {
9 isActorNameValid
10}