X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fvideo.ts;h=f5f645d3eac1997614c177f00c5a64c215f38ef0;hb=85302118227bad232afdebb84a5c245f862366bd;hp=c2e15a705582001a076c5b10318dc3da478b7c44;hpb=ca4b4b2e5590c1b37cff1fe1be7f797b93351229;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/video.ts b/server/helpers/video.ts index c2e15a705..f5f645d3e 100644 --- a/server/helpers/video.ts +++ b/server/helpers/video.ts @@ -4,7 +4,7 @@ import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo } from '@server/ty import { VideoPrivacy, VideoState } from '@shared/models' function getVideoWithAttributes (res: Response) { - return res.locals.videoAPI || res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights + return res.locals.videoAPI || res.locals.videoAll || res.locals.onlyVideo } function extractVideo (videoOrPlaylist: MVideo | MStreamingPlaylistVideo) {