diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index cfedbf59b1..6957236cfe 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -136,9 +136,7 @@ accountsController.getAccount = function(req, res, next) { } if(!userData) { - return res.json(404, { - error: 'User not found!' - }); + return userNotFound(res); } user.isFollowing(callerUID, userData.theirid, function (err, isFollowing) {