diff options
Diffstat (limited to 'server/middlewares/validators/webfinger.ts')
-rw-r--r-- | server/middlewares/validators/webfinger.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/middlewares/validators/webfinger.ts b/server/middlewares/validators/webfinger.ts index 4c176f162..dcfba99fa 100644 --- a/server/middlewares/validators/webfinger.ts +++ b/server/middlewares/validators/webfinger.ts | |||
@@ -3,7 +3,6 @@ import { query } from 'express-validator' | |||
3 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' | 3 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' |
4 | import { isWebfingerLocalResourceValid } from '../../helpers/custom-validators/webfinger' | 4 | import { isWebfingerLocalResourceValid } from '../../helpers/custom-validators/webfinger' |
5 | import { getHostWithPort } from '../../helpers/express-utils' | 5 | import { getHostWithPort } from '../../helpers/express-utils' |
6 | import { logger } from '../../helpers/logger' | ||
7 | import { ActorModel } from '../../models/actor/actor' | 6 | import { ActorModel } from '../../models/actor/actor' |
8 | import { areValidationErrors } from './shared' | 7 | import { areValidationErrors } from './shared' |
9 | 8 | ||
@@ -12,8 +11,6 @@ const webfingerValidator = [ | |||
12 | .custom(isWebfingerLocalResourceValid), | 11 | .custom(isWebfingerLocalResourceValid), |
13 | 12 | ||
14 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 13 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
15 | logger.debug('Checking webfinger parameters', { parameters: req.query }) | ||
16 | |||
17 | if (areValidationErrors(req, res)) return | 14 | if (areValidationErrors(req, res)) return |
18 | 15 | ||
19 | // Remove 'acct:' from the beginning of the string | 16 | // Remove 'acct:' from the beginning of the string |