mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 00:21:30 +02:00
Merge branch 'hook_favourite_unfavourite' of https://github.com/acardinale/NodeBB into acardinale-hook_favourite_unfavourite
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user