mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix config endpoint
This commit is contained in:
@@ -43,7 +43,7 @@ let serverCommit: string
|
||||
async function getConfig (req: express.Request, res: express.Response, next: express.NextFunction) {
|
||||
const allowed = await isSignupAllowed()
|
||||
const allowedForCurrentIP = isSignupAllowedForCurrentIP(req.ip)
|
||||
serverCommit = (serverCommit) ? serverCommit : getVersion()
|
||||
serverCommit = (serverCommit) ? serverCommit : await getVersion()
|
||||
if (serverCommit === packageJSON.version) serverCommit = ''
|
||||
|
||||
const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS)
|
||||
|
||||
Reference in New Issue
Block a user