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:
@@ -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 + ":\""
|
||||
|
||||
Reference in New Issue
Block a user