diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-28 17:39:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-28 17:39:29 +0200 |
commit | 41a676db3989fe3eca91301ac5f5aea30d98654a (patch) | |
tree | 00a28c9110cdd351435ec0c066599763748119e7 /server | |
parent | f0d4e7eb240f256b4f01cde4a1cd6f66f8f4347c (diff) | |
download | PeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.tar.gz PeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.tar.zst PeerTube-41a676db3989fe3eca91301ac5f5aea30d98654a.zip |
Add features table on signup
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/api/config.ts | 2 |
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 = { |