X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Foembed.ts;h=ab117635eb04799ee3ab95de7d95b4b4bff6530c;hb=10363c74c1d869f0e0c7bc4d0367b1f34d1bb6a4;hp=b1d763fbeee46cbf931d5fdfa3a2a711862b9f54;hpb=5e08989ede1a340b9edb94465a11b1e04bf24094;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/oembed.ts b/server/middlewares/validators/oembed.ts index b1d763fbe..ab117635e 100644 --- a/server/middlewares/validators/oembed.ts +++ b/server/middlewares/validators/oembed.ts @@ -1,7 +1,7 @@ import * as express from 'express' import { query } from 'express-validator' import { join } from 'path' -import { fetchVideo } from '@server/helpers/video' +import { fetchVideo } from '@server/lib/model-loaders' import { VideoPlaylistModel } from '@server/models/video/video-playlist' import { VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' @@ -9,7 +9,7 @@ import { isTestInstance } from '../../helpers/core-utils' import { isIdOrUUIDValid } from '../../helpers/custom-validators/misc' import { logger } from '../../helpers/logger' import { WEBSERVER } from '../../initializers/constants' -import { areValidationErrors } from './utils' +import { areValidationErrors } from './shared' const playlistPaths = [ join('videos', 'watch', 'playlist'),