diff options
author | Xavid <xavid@mit.edu> | 2015-06-21 11:29:17 -0400 |
---|---|---|
committer | Xavid <xavid@mit.edu> | 2015-06-21 11:29:17 -0400 |
commit | a4fe0d0dc8a80662606af17461793205d128ad22 (patch) | |
tree | f9c738321cc37513bb2b1a9e1d8cd11e2495149e /src | |
parent | 23bcccdf803049700b5c823ef5a48ecfb3a553de (diff) | |
download | etherpad-lite-a4fe0d0dc8a80662606af17461793205d128ad22.zip |
Add an 'author' entry to the context for the padCreate and padUpdate hooks.
Diffstat (limited to 'src')
-rw-r--r-- | src/node/db/Pad.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index e70628b7..8978d253 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -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}); } }; |