Merge branch 'hook_favourite_unfavourite' of https://github.com/acardinale/NodeBB into acardinale-hook_favourite_unfavourite

This commit is contained in:
Julian Lam
2015-05-18 15:57:09 -04:00

View File

@@ -307,6 +307,12 @@ var async = require('async'),
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,