From 012580d98f489e599d44a9a2a0bdc892b9455a90 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 May 2021 10:21:39 +0200 Subject: Cleanup We must not expose private actor objects to clients Just make 2 GET requests on channel/accounts instead --- server/helpers/custom-validators/actor.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 server/helpers/custom-validators/actor.ts (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/actor.ts b/server/helpers/custom-validators/actor.ts deleted file mode 100644 index ad129e080..000000000 --- a/server/helpers/custom-validators/actor.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { isAccountNameValid } from './accounts' -import { isVideoChannelNameValid } from './video-channels' - -function isActorNameValid (value: string) { - return isAccountNameValid(value) || isVideoChannelNameValid(value) -} - -export { - isActorNameValid -} -- cgit v1.2.3