X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Foembed.ts;h=ef9a227a0446a1513727858624dcea3e404765a8;hb=a2be43f5700460d3afdc194abc788690b79e66cd;hp=fa90dd05c91d1b294c3c6a51cf2a2c4fdaf531d6;hpb=396f6f0140b0f76162e2378fd5a61e2f888673ed;p=github%2FChocobozzz%2FPeerTube.git 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' import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' import { isTestOrDevInstance } from '../../helpers/core-utils' import { isIdOrUUIDValid, isUUIDValid, toCompleteUUID } from '../../helpers/custom-validators/misc' -import { logger } from '../../helpers/logger' import { WEBSERVER } from '../../initializers/constants' import { areValidationErrors } from './shared' @@ -52,8 +51,6 @@ const oembedValidator = [ .isIn([ 'xml', 'json' ]), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking oembed parameters', { parameters: req.query }) - if (areValidationErrors(req, res)) return if (req.query.format !== undefined && req.query.format !== 'json') {