aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-28 17:39:29 +0200
committerChocobozzz <me@florianbigard.com>2018-08-28 17:39:29 +0200
commit41a676db3989fe3eca91301ac5f5aea30d98654a (patch)
tree00a28c9110cdd351435ec0c066599763748119e7 /server/controllers/api/config.ts
parentf0d4e7eb240f256b4f01cde4a1cd6f66f8f4347c (diff)
downloadPeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.tar.gz
PeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.tar.zst
PeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.zip
Add features table on signup
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r--server/controllers/api/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts
index 8dfc3deb4..25ddd1fa6 100644
--- a/server/controllers/api/config.ts
+++ b/server/controllers/api/config.ts
@@ -43,7 +43,7 @@ async function getConfig (req: express.Request, res: express.Response, next: exp
43 const allowedForCurrentIP = isSignupAllowedForCurrentIP(req.ip) 43 const allowedForCurrentIP = isSignupAllowedForCurrentIP(req.ip)
44 44
45 const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS) 45 const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS)
46 .filter(key => CONFIG.TRANSCODING.RESOLUTIONS[key] === true) 46 .filter(key => CONFIG.TRANSCODING.ENABLED === CONFIG.TRANSCODING.RESOLUTIONS[key] === true)
47 .map(r => parseInt(r, 10)) 47 .map(r => parseInt(r, 10))
48 48
49 const json: ServerConfig = { 49 const json: ServerConfig = {