From a143a15f5d2e081e3d4bb18580db5b27885230a7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 26 Jan 2017 20:44:26 +0300 Subject: [PATCH] closes #5397 --- src/posts/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index 3484bc424e..6cb925dc4c 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -108,7 +108,7 @@ module.exports = function (Posts) { }, function (postData, next) { postData.isMain = isMain; - plugins.fireHook('action:post.save', _.clone(postData)); + plugins.fireHook('action:post.save', {post: _.clone(postData)}); next(null, postData); } ], callback);