diff options
Diffstat (limited to 'server/middlewares/validators/oembed.ts')
-rw-r--r-- | server/middlewares/validators/oembed.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/middlewares/validators/oembed.ts b/server/middlewares/validators/oembed.ts index fa90dd05c..ef9a227a0 100644 --- a/server/middlewares/validators/oembed.ts +++ b/server/middlewares/validators/oembed.ts | |||
@@ -7,7 +7,6 @@ import { VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' | |||
7 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' | 7 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' |
8 | import { isTestOrDevInstance } from '../../helpers/core-utils' | 8 | import { isTestOrDevInstance } from '../../helpers/core-utils' |
9 | import { isIdOrUUIDValid, isUUIDValid, toCompleteUUID } from '../../helpers/custom-validators/misc' | 9 | import { isIdOrUUIDValid, isUUIDValid, toCompleteUUID } from '../../helpers/custom-validators/misc' |
10 | import { logger } from '../../helpers/logger' | ||
11 | import { WEBSERVER } from '../../initializers/constants' | 10 | import { WEBSERVER } from '../../initializers/constants' |
12 | import { areValidationErrors } from './shared' | 11 | import { areValidationErrors } from './shared' |
13 | 12 | ||
@@ -52,8 +51,6 @@ const oembedValidator = [ | |||
52 | .isIn([ 'xml', 'json' ]), | 51 | .isIn([ 'xml', 'json' ]), |
53 | 52 | ||
54 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 53 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
55 | logger.debug('Checking oembed parameters', { parameters: req.query }) | ||
56 | |||
57 | if (areValidationErrors(req, res)) return | 54 | if (areValidationErrors(req, res)) return |
58 | 55 | ||
59 | if (req.query.format !== undefined && req.query.format !== 'json') { | 56 | if (req.query.format !== undefined && req.query.format !== 'json') { |