diff options
Diffstat (limited to 'server/middlewares/validators/webfinger.ts')
-rw-r--r-- | server/middlewares/validators/webfinger.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/webfinger.ts b/server/middlewares/validators/webfinger.ts index 068e03ad7..3e61a6cc3 100644 --- a/server/middlewares/validators/webfinger.ts +++ b/server/middlewares/validators/webfinger.ts | |||
@@ -14,7 +14,7 @@ const webfingerValidator = [ | |||
14 | checkErrors(req, res, () => { | 14 | checkErrors(req, res, () => { |
15 | // Remove 'acct:' from the beginning of the string | 15 | // Remove 'acct:' from the beginning of the string |
16 | const nameWithHost = req.query.resource.substr(5) | 16 | const nameWithHost = req.query.resource.substr(5) |
17 | const [ name, ] = nameWithHost.split('@') | 17 | const [ name ] = nameWithHost.split('@') |
18 | 18 | ||
19 | db.Account.loadLocalByName(name) | 19 | db.Account.loadLocalByName(name) |
20 | .then(account => { | 20 | .then(account => { |