summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorXavid <xavid@mit.edu>2015-06-21 11:29:17 -0400
committerXavid <xavid@mit.edu>2015-06-21 11:29:17 -0400
commita4fe0d0dc8a80662606af17461793205d128ad22 (patch)
treef9c738321cc37513bb2b1a9e1d8cd11e2495149e /src/node/db
parent23bcccdf803049700b5c823ef5a48ecfb3a553de (diff)
downloadetherpad-lite-a4fe0d0dc8a80662606af17461793205d128ad22.zip
Add an 'author' entry to the context for the padCreate and padUpdate hooks.
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/Pad.js4
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});
}
};