X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fconfig.ts;h=f0fb43071b82cd501149c70c065cfd15467b25fa;hb=db312c7023bb8263741255f8af1c8a6aef5f88f7;hp=19bd2888cf8fe1f6518b18814a9697014cc606cc;hpb=5e2afe4290103bf0d54ae7b3e62781f2a00487c9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 19bd2888c..f0fb43071 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -10,7 +10,6 @@ import { CONFIG, reloadConfig } from '../../initializers/config' import { ClientHtml } from '../../lib/client-html' import { asyncMiddleware, authenticate, ensureUserHasRight, openapiOperationDoc } from '../../middlewares' import { customConfigUpdateValidator, ensureConfigIsEditable } from '../../middlewares/validators/config' -import { logger } from '@server/helpers/logger' const configRouter = express.Router() @@ -113,7 +112,6 @@ async function updateCustomConfig (req: express.Request, res: express.Response) const data = customConfig() - logger.info('coucou', { data }) auditLogger.update( getAuditIdFromRes(res), new CustomConfigAuditView(data), @@ -275,6 +273,10 @@ function customConfig (): CustomConfig { torrent: { enabled: CONFIG.IMPORT.VIDEOS.TORRENT.ENABLED } + }, + videoChannelSynchronization: { + enabled: CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED, + maxPerUser: CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.MAX_PER_USER } }, trending: {