mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
some minor cleanup in the async tree...
This commit is contained in:
@@ -306,20 +306,22 @@ var async = require('async'),
|
||||
function(count, next) {
|
||||
results.postData.reputation = count;
|
||||
posts.setPostField(pid, 'reputation', count, next);
|
||||
},
|
||||
function(next) {
|
||||
plugins.fireHook('action:post.' + type, {
|
||||
pid: pid,
|
||||
uid: uid,
|
||||
}, next);
|
||||
},
|
||||
function(next) {
|
||||
next(null, {
|
||||
post: results.postData,
|
||||
isFavourited: isFavouriting
|
||||
});
|
||||
}
|
||||
], callback);
|
||||
], function(err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
plugins.fireHook('action:post.' + type, {
|
||||
pid: pid,
|
||||
uid: uid,
|
||||
});
|
||||
|
||||
callback(null, {
|
||||
post: results.postData,
|
||||
isFavourited: isFavouriting
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user