mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
closes #3464
This commit is contained in:
@@ -175,6 +175,10 @@ accountsController.getAccount = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (parseInt(meta.config['reputation:disabled'], 10) === 1) {
|
||||
delete userData.reputation;
|
||||
}
|
||||
|
||||
userData.posts = results.posts.posts.filter(function (p) {
|
||||
return p && parseInt(p.deleted, 10) !== 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user