aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/webfinger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/webfinger.ts')
-rw-r--r--server/helpers/custom-validators/webfinger.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts
index d8c1232ce..80a7e4a9d 100644
--- a/server/helpers/custom-validators/webfinger.ts
+++ b/server/helpers/custom-validators/webfinger.ts
@@ -2,7 +2,7 @@ import { CONFIG, REMOTE_SCHEME } from '../../initializers'
2import { sanitizeHost } from '../core-utils' 2import { sanitizeHost } from '../core-utils'
3import { exists } from './misc' 3import { exists } from './misc'
4 4
5function isWebfingerResourceValid (value: string) { 5function isWebfingerLocalResourceValid (value: string) {
6 if (!exists(value)) return false 6 if (!exists(value)) return false
7 if (value.startsWith('acct:') === false) return false 7 if (value.startsWith('acct:') === false) return false
8 8
@@ -17,5 +17,5 @@ function isWebfingerResourceValid (value: string) {
17// --------------------------------------------------------------------------- 17// ---------------------------------------------------------------------------
18 18
19export { 19export {
20 isWebfingerResourceValid 20 isWebfingerLocalResourceValid
21} 21}