From 911892c5b0ff8589cfadf9902f47720bdd4aa98f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 23 Feb 2016 17:17:55 -0500 Subject: [PATCH] closes #3870 --- src/controllers/accounts/settings.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/controllers/accounts/settings.js b/src/controllers/accounts/settings.js index 7d6ebfdeef..3631f85db9 100644 --- a/src/controllers/accounts/settings.js +++ b/src/controllers/accounts/settings.js @@ -21,7 +21,13 @@ settingsController.get = function(req, res, callback) { var userData; async.waterfall([ function(next) { - accountHelpers.getBaseUser(req.params.userslug, req.uid, next); + user.getIPs(req.uid, 4, next); + }, + function(ips, next) { + accountHelpers.getBaseUser(req.params.userslug, req.uid, function(err, data) { + data.ips = ips; + next(err, data); + }); }, function(_userData, next) { userData = _userData;