mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
pass reputation to flag reporter payload as well
This commit is contained in:
@@ -31,7 +31,7 @@ Flags.get = function (flagId, callback) {
|
|||||||
}
|
}
|
||||||
// Second stage
|
// Second stage
|
||||||
async.parallel({
|
async.parallel({
|
||||||
userObj: async.apply(user.getUserFields, data.base.uid, ['username', 'userslug', 'picture']),
|
userObj: async.apply(user.getUserFields, data.base.uid, ['username', 'userslug', 'picture', 'reputation']),
|
||||||
targetObj: async.apply(Flags.getTarget, data.base.type, data.base.targetId, data.base.uid),
|
targetObj: async.apply(Flags.getTarget, data.base.type, data.base.targetId, data.base.uid),
|
||||||
}, function (err, payload) {
|
}, function (err, payload) {
|
||||||
// Final object return construction
|
// Final object return construction
|
||||||
|
|||||||
Reference in New Issue
Block a user