1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-15 14:57:42 +00:00

Set modified field and other metadata for newly created and modified tiddlers

Right now we're setting the created/modified time, and only setting the
creator/modifier if the tiddler `$:/status/UserName` is defined.
This commit is contained in:
Jeremy Ruston
2013-08-04 14:02:07 +01:00
parent bb843a408d
commit 86e73ee323
6 changed files with 47 additions and 14 deletions

View File

@@ -124,7 +124,7 @@ var Command = function(params,commander,callback) {
if(fields["revision"]) {
delete fields["revision"];
}
state.wiki.addTiddler(new $tw.Tiddler(fields,{title: title}));
state.wiki.addTiddler(new $tw.Tiddler(fields,{title: title},state.wiki.getModificationFields()));
var changeCount = state.wiki.getChangeCount(title).toString();
response.writeHead(204, "OK",{
Etag: "\"default/" + title + "/" + changeCount + ":\""