X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fvideo.ts;h=5b9c026b1e2b0357aaf2d0026551a24d8262dd8d;hb=32c68d67d9125df62ead71668efca4da30132786;hp=d066e2b1f42854ce5c110f79955a8226606a93d9;hpb=d5c8932a601c1854db0a2e399ccaf26e17385f1a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/video.ts b/server/helpers/video.ts index d066e2b1f..5b9c026b1 100644 --- a/server/helpers/video.ts +++ b/server/helpers/video.ts @@ -45,10 +45,6 @@ function fetchVideoByUrl (url: string, fetchType: VideoFetchByUrlType): Bluebird if (fetchType === 'only-video') return VideoModel.loadByUrl(url) } -function getVideo (res: Response) { - return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights || res.locals.videoId -} - function getVideoWithAttributes (res: Response) { return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights } @@ -57,7 +53,6 @@ export { VideoFetchType, VideoFetchByUrlType, fetchVideo, - getVideo, getVideoWithAttributes, fetchVideoByUrl }