@ -306,20 +306,22 @@ var async = require('async'),
function(count, next) {
results.postData.reputation = count;
posts.setPostField(pid, 'reputation', count, next);
},
function(next) {
}
], function(err) {
if (err) {
return callback(err);
plugins.fireHook('action:post.' + type, {
pid: pid,
uid: uid,
}, next);
next(null, {
});
callback(null, {
post: results.postData,
isFavourited: isFavouriting
], callback);