1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-23 02:34:53 +00:00

System tiddler syncing (#4987)

* First pass at a fix for system tiddler sync issues

* Add new filter syncFromServer

* Undo previous attempt at a fix

* Added a flag to control sync of system tiddlers from server
This commit is contained in:
saqimtiaz
2020-11-19 16:59:02 +01:00
committed by GitHub
parent 0d434583ec
commit e2bea854b6
4 changed files with 19 additions and 8 deletions

View File

@@ -28,6 +28,9 @@ exports.handler = function(request,response,state) {
return;
}
}
if(state.wiki.getTiddlerText("$:/config/SyncSystemTiddlersFromServer") === "no") {
filter += "+[!is[system]]";
}
var excludeFields = (state.queryParameters.exclude || "text").split(","),
titles = state.wiki.filterTiddlers(filter);
response.writeHead(200, {"Content-Type": "application/json"});