From 7c6fc45be3f8734d56699e6e9ca07a4f1c31e48c Mon Sep 17 00:00:00 2001 From: garmoncheg Date: Sat, 7 Sep 2024 23:10:52 +0300 Subject: [PATCH] Move debug contexts params to config (#552) --- modules/api/views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/views.js b/modules/api/views.js index d5ce4d3f1..c17334a6f 100644 --- a/modules/api/views.js +++ b/modules/api/views.js @@ -133,7 +133,7 @@ export default function(app) { debug: getBooleanParam(req, 'debug'), returnProviderOptionsUsage: getBooleanParam(req, 'debug'), mixAllWithDomainPlugin: getBooleanParam(req, 'mixAllWithDomainPlugin'), - forceParams: req.query.meta === "true" ? ["meta", "oembed"] : null, + forceParams: req.query.meta === "true" ? CONFIG.DEBUG_CONTEXTS : null, whitelist: getBooleanParam(req, 'whitelist'), readability: getBooleanParam(req, 'readability'), getWhitelistRecord: whitelist.findWhitelistRecordFor,