From a4fe0d0dc8a80662606af17461793205d128ad22 Mon Sep 17 00:00:00 2001 From: Xavid Date: Sun, 21 Jun 2015 11:29:17 -0400 Subject: [PATCH] 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(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index e70628b7a..8978d2530 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}); } };