X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fvideo.ts;h=f5f645d3eac1997614c177f00c5a64c215f38ef0;hb=f7bb2bb5a753b3f1a37301dcff2d58e434ecd3af;hp=d3445bed5e53d1c2fbd83ad1e0936e97fecb53f3;hpb=10363c74c1d869f0e0c7bc4d0367b1f34d1bb6a4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/video.ts b/server/helpers/video.ts index d3445bed5..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.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights + return res.locals.videoAPI || res.locals.videoAll || res.locals.onlyVideo } function extractVideo (videoOrPlaylist: MVideo | MStreamingPlaylistVideo) {