Added action:post.downvote hook

v1.18.x
Evan Lucas 11 years ago committed by Julian Lam
parent f609b1e45d
commit 3360752c5c

@ -131,7 +131,14 @@ var async = require('async'),
return callback(new Error('[[error:not-enough-reputation-to-downvote]]'));
}
toggleVote('downvote', pid, uid, callback);
toggleVote('downvote', pid, uid, function(err, votes) {
if (err) return callback(err);
plugins.fireHook('action:post.downvote', {
pid: pid,
uid: uid
});
callback(null, votes);
});
});
};

Loading…
Cancel
Save