diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:52:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 79d5caf994edd87ad721994490f10677be277497 (patch) | |
tree | 0db45893d8b78e34ce3d59849d0a331977a63d4b /server/middlewares | |
parent | 572f8d3dba44ba874f5c51023214273e3f5b643c (diff) | |
download | PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.gz PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.zst PeerTube-79d5caf994edd87ad721994490f10677be277497.zip |
Fix lint
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/account.ts | 9 | ||||
-rw-r--r-- | server/middlewares/validators/webfinger.ts | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/server/middlewares/validators/account.ts b/server/middlewares/validators/account.ts index 58eeed3cc..07ae76b63 100644 --- a/server/middlewares/validators/account.ts +++ b/server/middlewares/validators/account.ts | |||
@@ -1,13 +1,6 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { param } from 'express-validator/check' | 2 | import { param } from 'express-validator/check' |
3 | import { | 3 | import { logger } from '../../helpers' |
4 | isUserDisplayNSFWValid, | ||
5 | isUserPasswordValid, | ||
6 | isUserRoleValid, | ||
7 | isUserUsernameValid, | ||
8 | isUserVideoQuotaValid, | ||
9 | logger | ||
10 | } from '../../helpers' | ||
11 | import { isAccountNameValid } from '../../helpers/custom-validators/accounts' | 4 | import { isAccountNameValid } from '../../helpers/custom-validators/accounts' |
12 | import { database as db } from '../../initializers/database' | 5 | import { database as db } from '../../initializers/database' |
13 | import { AccountInstance } from '../../models' | 6 | import { AccountInstance } from '../../models' |
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 => { |