From f470078c9d114ce09ac24b1320e8587bcb0e73a5 Mon Sep 17 00:00:00 2001 From: mrichter Date: Mon, 16 Nov 2020 17:22:54 +0100 Subject: [PATCH] add the possibility to dynamically exclude tiddlers from being delivered out (e.g. temporarily reduce size by kind of 'hiding' stuff to the browser). one can also add the filter '-[subfilter{$:/config/Server/GlobalExclusionFilter}]' to the root-tiddler to get a synchronous behavior --- core/modules/server/routes/get-tiddlers-json.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/server/routes/get-tiddlers-json.js b/core/modules/server/routes/get-tiddlers-json.js index 2c730e066..7b8f63e8e 100644 --- a/core/modules/server/routes/get-tiddlers-json.js +++ b/core/modules/server/routes/get-tiddlers-json.js @@ -28,6 +28,7 @@ exports.handler = function(request,response,state) { return; } } + filter = filter + "-[subfilter{$:/config/Server/GlobalExclusionFilter}]"; var excludeFields = (state.queryParameters.exclude || "text").split(","), titles = state.wiki.filterTiddlers(filter); response.writeHead(200, {"Content-Type": "application/json"});