Calculate and send diff on startup commands

This commit is contained in:
HelloZeroNet 2016-04-06 13:58:43 +02:00
parent ab1aaea7f5
commit 7c3e470ea7
2 changed files with 6 additions and 5 deletions

View file

@ -372,7 +372,7 @@ class FileRequest(object):
self.response({"error": "Only local host allowed"})
site = self.sites.get(params["site"])
num = site.publish(limit=8, inner_path=params.get("inner_path", "content.json"))
num = site.publish(limit=8, inner_path=params.get("inner_path", "content.json"), diffs=params.get("diffs", {}))
self.response({"ok": "Successfuly published to %s peers" % num})