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:
parent
7e5f9f001d
commit
5d08a6a74e
26 changed files with 385 additions and 12 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue