This commit is contained in:
psychobunny
2015-08-22 12:03:34 -04:00
parent 0cb8f2b80c
commit 36110db90c

View File

@@ -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;
});