Node.js based forum software built for the modern web
fix: add composer:showHelpTab to api
Barış Soner Uşaklı5c26cb58882e
diff --git a/public/openapi/read/config.yaml b/public/openapi/read/config.yamlindex bd7c1e8853..e4b44456d5 100644--- a/public/openapi/read/config.yaml+++ b/public/openapi/read/config.yaml@@ -108,6 +108,8 @@ get:type: booleanbootswatchSkin:type: string+ composer:showHelpTab:+ type: booleanenablePostHistory:type: booleantimeagoCutoff:diff --git a/src/controllers/api.js b/src/controllers/api.jsindex 89ef755d28..a2a6f0c96b 100644--- a/src/controllers/api.js+++ b/src/controllers/api.js@@ -69,6 +69,7 @@ apiController.loadConfig = async function (req) {searchEnabled: plugins.hooks.hasListeners('filter:search.query'),searchDefaultInQuick: meta.config.searchDefaultInQuick || 'titles',bootswatchSkin: meta.config.bootswatchSkin || '',+ 'composer:showHelpTab': meta.config['composer:showHelpTab'] === 1,enablePostHistory: meta.config.enablePostHistory === 1,timeagoCutoff: meta.config.timeagoCutoff !== '' ? Math.max(0, parseInt(meta.config.timeagoCutoff, 10)) : meta.config.timeagoCutoff,timeagoCodes: languages.timeagoCodes,