mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Add an 'author' entry to the context for the padCreate and padUpdate hooks.
This commit is contained in:
parent
23bcccdf80
commit
a4fe0d0dc8
1 changed files with 2 additions and 2 deletions
|
@ -105,9 +105,9 @@ Pad.prototype.appendRevision = function appendRevision(aChangeset, author) {
|
||||||
authorManager.addPad(author, this.id);
|
authorManager.addPad(author, this.id);
|
||||||
|
|
||||||
if (this.head == 0) {
|
if (this.head == 0) {
|
||||||
hooks.callAll("padCreate", {'pad':this});
|
hooks.callAll("padCreate", {'pad':this, 'author': author});
|
||||||
} else {
|
} else {
|
||||||
hooks.callAll("padUpdate", {'pad':this});
|
hooks.callAll("padUpdate", {'pad':this, 'author': author});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue