mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #5397
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user