mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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
|
||||
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),
|
||||
}, function (err, payload) {
|
||||
// Final object return construction
|
||||
|
||||
Reference in New Issue
Block a user