aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/actors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/actors.ts')
-rw-r--r--server/helpers/actors.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/server/helpers/actors.ts b/server/helpers/actors.ts
deleted file mode 100644
index c31fe6f8e..000000000
--- a/server/helpers/actors.ts
+++ /dev/null
@@ -1,17 +0,0 @@
1import { WEBSERVER } from '@server/initializers/constants'
2
3function handleToNameAndHost (handle: string) {
4 let [ name, host ] = handle.split('@')
5 if (host === WEBSERVER.HOST) host = null
6
7 return { name, host, handle }
8}
9
10function handlesToNameAndHost (handles: string[]) {
11 return handles.map(h => handleToNameAndHost(h))
12}
13
14export {
15 handleToNameAndHost,
16 handlesToNameAndHost
17}