1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add import http enabled configuration

This commit is contained in:
Chocobozzz 2018-08-03 11:10:31 +02:00
parent 7e5f9f001d
commit 5d08a6a74e
26 changed files with 385 additions and 12 deletions

View file

@ -246,11 +246,9 @@ class CustomConfigAuditView extends EntityAuditView {
const resolutionsDict = infos.transcoding.resolutions
const resolutionsArray = []
Object.entries(resolutionsDict).forEach(([resolution, isEnabled]) => {
if (isEnabled) {
resolutionsArray.push(resolution)
}
if (isEnabled) resolutionsArray.push(resolution)
})
infos.transcoding.resolutions = resolutionsArray
Object.assign({}, infos, { transcoding: { resolutions: resolutionsArray } })
super(customConfigKeysToKeep, 'config', infos)
}
}