diff options
Diffstat (limited to 'server/helpers/custom-validators/webfinger.ts')
-rw-r--r-- | server/helpers/custom-validators/webfinger.ts | 4 |
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' | |||
2 | import { sanitizeHost } from '../core-utils' | 2 | import { sanitizeHost } from '../core-utils' |
3 | import { exists } from './misc' | 3 | import { exists } from './misc' |
4 | 4 | ||
5 | function isWebfingerResourceValid (value: string) { | 5 | function 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 | ||
19 | export { | 19 | export { |
20 | isWebfingerResourceValid | 20 | isWebfingerLocalResourceValid |
21 | } | 21 | } |