mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
GET recipes/name/tiddlers.json should use include_deleted parameter
This commit is contained in:
parent
8091db37e8
commit
6c9b92400e
@ -175,7 +175,8 @@ MultiWikiClientAdaptor.prototype.getUpdatedTiddlers = function(syncer,callback)
|
|||||||
$tw.utils.httpRequest({
|
$tw.utils.httpRequest({
|
||||||
url: this.host + "recipes/" + this.recipe + "/tiddlers.json",
|
url: this.host + "recipes/" + this.recipe + "/tiddlers.json",
|
||||||
data: {
|
data: {
|
||||||
last_known_tiddler_id: this.last_known_tiddler_id
|
last_known_tiddler_id: this.last_known_tiddler_id,
|
||||||
|
include_deleted: "true"
|
||||||
},
|
},
|
||||||
callback: function(err,data) {
|
callback: function(err,data) {
|
||||||
// Check for errors
|
// Check for errors
|
||||||
|
@ -3,7 +3,7 @@ title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-recipe-tiddlers
|
|||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: mws-route
|
module-type: mws-route
|
||||||
|
|
||||||
GET /recipes/:recipe_name/tiddlers.json?last_known_tiddler_id=:last_known_tiddler_id
|
GET /recipes/:recipe_name/tiddlers.json?last_known_tiddler_id=:last_known_tiddler_id&include_deleted=true|false
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function() {
|
(function() {
|
||||||
@ -22,6 +22,7 @@ exports.handler = function(request,response,state) {
|
|||||||
if(recipe_name) {
|
if(recipe_name) {
|
||||||
// Get the tiddlers in the recipe, optionally since the specified last known tiddler_id
|
// Get the tiddlers in the recipe, optionally since the specified last known tiddler_id
|
||||||
var recipeTiddlers = $tw.mws.store.getRecipeTiddlers(recipe_name,{
|
var recipeTiddlers = $tw.mws.store.getRecipeTiddlers(recipe_name,{
|
||||||
|
include_deleted: state.queryParameters.include_deleted === "true",
|
||||||
last_known_tiddler_id: state.queryParameters.last_known_tiddler_id
|
last_known_tiddler_id: state.queryParameters.last_known_tiddler_id
|
||||||
});
|
});
|
||||||
if(recipeTiddlers) {
|
if(recipeTiddlers) {
|
||||||
|
Loading…
Reference in New Issue
Block a user