From dd9e286633ebcb4a0a6e309b63afa8e46c619639 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 10 Jan 2017 18:31:08 +0300 Subject: [PATCH] closes #5355 --- src/posts/delete.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/posts/delete.js b/src/posts/delete.js index 32ee6b6f41..d3f02a95da 100644 --- a/src/posts/delete.js +++ b/src/posts/delete.js @@ -42,7 +42,7 @@ module.exports = function (Posts) { ], next); }, function (results, next) { - plugins.fireHook('action:post.delete', pid); + plugins.fireHook('action:post.delete', {pid: pid, uid: uid}); next(null, postData); } ], callback); @@ -79,7 +79,7 @@ module.exports = function (Posts) { ], next); }, function (results, next) { - plugins.fireHook('action:post.restore', _.clone(postData)); + plugins.fireHook('action:post.restore', {post: _.clone(postData), uid: uid}); next(null, postData); } ], callback); @@ -149,7 +149,7 @@ module.exports = function (Posts) { if (err) { return next(err); } - plugins.fireHook('action:post.purge', pid); + plugins.fireHook('action:post.purge', {pid: pid, uid: uid}); db.delete('post:' + pid, next); }); }