From a4fe0d0dc8a80662606af17461793205d128ad22 Mon Sep 17 00:00:00 2001 From: Xavid Date: Sun, 21 Jun 2015 11:29:17 -0400 Subject: Add an 'author' entry to the context for the padCreate and padUpdate hooks. --- src/node/db/Pad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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}); } }; -- cgit v1.2.3