Skip to content

Node.js based forum software built for the modern web

closes #1593

barisusakli9c0446d416c9
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) {