From 868fce62f86812759ccedccf7634236ac3701d9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 3 Jun 2021 18:10:56 +0200 Subject: fetch -> load avoid confusion with AP fetch functions --- server/middlewares/validators/oembed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/oembed.ts') diff --git a/server/middlewares/validators/oembed.ts b/server/middlewares/validators/oembed.ts index ab117635e..e1015d7fd 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/lib/model-loaders' +import { loadVideo } 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' @@ -85,7 +85,7 @@ const oembedValidator = [ } if (isVideo) { - const video = await fetchVideo(elementId, 'all') + const video = await loadVideo(elementId, 'all') if (!video) { return res.fail({ -- cgit v1.2.3