mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 01:46:14 -04:00
Merge pull request #2699 from xavidotron/develop
Add author information to the context for padCreate and padUpdate hooks.
This commit is contained in:
commit
6b40961fc8
2 changed files with 4 additions and 2 deletions
|
@ -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});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue