diff --git a/src/controllers/users.js b/src/controllers/users.js index 0f3b7bf6bc..1c15da5d49 100644 --- a/src/controllers/users.js +++ b/src/controllers/users.js @@ -36,7 +36,7 @@ usersController.getOnlineUsers = function(req, res, next) { } var userData = { - 'route_users:online': true, + 'users:online': true, search_display: 'hidden', loadmore_display: results.count > 50 ? 'block' : 'hide', users: results.users, @@ -71,7 +71,7 @@ usersController.getUsers = function(set, start, stop, req, res, next) { users: data.users, pagination: pagination.create(1, pageCount) }; - userData['route_' + set] = true; + userData[set] = true; render(req, res, userData, next); }); };