From ca4b4b2e5590c1b37cff1fe1be7f797b93351229 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Jun 2021 09:57:19 +0200 Subject: Fetch directly all video attributes for get API --- server/helpers/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/video.ts b/server/helpers/video.ts index d3445bed5..c2e15a705 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 || res.locals.onlyVideoWithRights } function extractVideo (videoOrPlaylist: MVideo | MStreamingPlaylistVideo) { -- cgit v1.2.3