mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
cleanup and tests
This commit is contained in:
@@ -102,12 +102,12 @@ module.exports = function (Posts) {
|
||||
db.incrObjectField('global', 'postCount', next);
|
||||
},
|
||||
], function (err) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
plugins.fireHook('filter:post.get', { post: postData, uid: data.uid }, next);
|
||||
next(err);
|
||||
});
|
||||
},
|
||||
function (next) {
|
||||
plugins.fireHook('filter:post.get', { post: postData, uid: data.uid }, next);
|
||||
},
|
||||
function (data, next) {
|
||||
data.post.isMain = isMain;
|
||||
plugins.fireHook('action:post.save', { post: _.clone(data.post) });
|
||||
|
||||
Reference in New Issue
Block a user