Add an 'author' entry to the context for the padCreate and padUpdate hooks.

This commit is contained in:
Xavid 2015-06-21 11:29:17 -04:00
parent 23bcccdf80
commit a4fe0d0dc8
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ Pad.prototype.appendRevision = function appendRevision(aChangeset, author) {
authorManager.addPad(author, this.id);
if (this.head == 0) {
hooks.callAll("padCreate", {'pad':this});
hooks.callAll("padCreate", {'pad':this, 'author': author});
} else {
hooks.callAll("padUpdate", {'pad':this});
hooks.callAll("padUpdate", {'pad':this, 'author': author});
}
};