Add hooks: action:post.favourite and action:post.unfavourite

v1.18.x
Andrea Cardinale 10 years ago
parent 5f0531e66a
commit 1d22a2d46b

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