v1.18.x
barisusakli 8 years ago
parent 4df8832c8d
commit a143a15f5d

@ -108,7 +108,7 @@ module.exports = function (Posts) {
}, },
function (postData, next) { function (postData, next) {
postData.isMain = isMain; postData.isMain = isMain;
plugins.fireHook('action:post.save', _.clone(postData)); plugins.fireHook('action:post.save', {post: _.clone(postData)});
next(null, postData); next(null, postData);
} }
], callback); ], callback);

Loading…
Cancel
Save