From 95a73301229289997fbab90fa3291db4b5f1414e Mon Sep 17 00:00:00 2001 From: garmoncheg Date: Thu, 22 Aug 2024 17:10:30 +0300 Subject: [PATCH 1/4] move params to config --- 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, From 334496b9dc28b193e2deddcdfc467ff834e5d6b6 Mon Sep 17 00:00:00 2001 From: garmoncheg Date: Wed, 4 Sep 2024 19:43:12 +0300 Subject: [PATCH 2/4] use utils from links --- lib/core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core.js b/lib/core.js index 0ec6ed504..9b4851763 100644 --- a/lib/core.js +++ b/lib/core.js @@ -11,6 +11,7 @@ import * as htmlUtils from './html-utils.js'; import * as metaUtils from './plugins/system/meta/utils.js'; + import * as linksUtils from '../plugins/links/utils.js'; const plugins = pluginLoader._plugins, pluginsModules = pluginLoader._pluginsModules, @@ -23,6 +24,7 @@ const utilsModules = { utils: utils, + linksUtils: linksUtils.default, htmlUtils: htmlUtils, metaUtils: metaUtils, plugins: pluginsModules, From b29e0c9ca0004da55887cfb0e9a97db1af584f95 Mon Sep 17 00:00:00 2001 From: garmoncheg Date: Thu, 5 Sep 2024 18:18:45 +0300 Subject: [PATCH 3/4] remove use of .default --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index 9b4851763..8e6aae9db 100644 --- a/lib/core.js +++ b/lib/core.js @@ -24,7 +24,7 @@ const utilsModules = { utils: utils, - linksUtils: linksUtils.default, + linksUtils: linksUtils, htmlUtils: htmlUtils, metaUtils: metaUtils, plugins: pluginsModules, From 80cb6be371ac51a9c6342a7bdcff8555debb1452 Mon Sep 17 00:00:00 2001 From: garmoncheg Date: Thu, 5 Sep 2024 18:50:01 +0300 Subject: [PATCH 4/4] remove linksUtils --- lib/core.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/core.js b/lib/core.js index 8e6aae9db..0ec6ed504 100644 --- a/lib/core.js +++ b/lib/core.js @@ -11,7 +11,6 @@ import * as htmlUtils from './html-utils.js'; import * as metaUtils from './plugins/system/meta/utils.js'; - import * as linksUtils from '../plugins/links/utils.js'; const plugins = pluginLoader._plugins, pluginsModules = pluginLoader._pluginsModules, @@ -24,7 +23,6 @@ const utilsModules = { utils: utils, - linksUtils: linksUtils, htmlUtils: htmlUtils, metaUtils: metaUtils, plugins: pluginsModules,