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

v1.18.x
Julian Lam 10 years ago
commit 9daa2701cd

@ -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,

Loading…
Cancel
Save