From 465679cafdd172f2d71234a379654269e125f34a Mon Sep 17 00:00:00 2001 From: LiPeK Date: Mon, 27 May 2019 15:11:38 +0200 Subject: Update config.ts This should fix https://github.com/Chocobozzz/PeerTube/issues/1850 --- server/controllers/api/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index d9ce6a153..27c416a12 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -51,7 +51,7 @@ async function getConfig (req: express.Request, res: express.Response) { if (serverCommit === undefined) serverCommit = await getServerCommit() const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS) - .filter(key => CONFIG.TRANSCODING.ENABLED === CONFIG.TRANSCODING.RESOLUTIONS[key] === true) + .filter(key => CONFIG.TRANSCODING.ENABLED && CONFIG.TRANSCODING.RESOLUTIONS[key] === true) .map(r => parseInt(r, 10)) const json: ServerConfig = { -- cgit v1.2.3