Commit 75217978 authored by Matthew Taylor's avatar Matthew Taylor

Switch message count to new endpoint

parent ea1b4248
......@@ -56,14 +56,14 @@ module.exports.getCount = function (username) {
return function (dispatch) {
api({
method: 'get',
uri: '/proxy/users/' + username + '/activity/count'
uri: '/users/' + username + '/messages/count'
}, function (err, body) {
if (err) {
dispatch(module.exports.setCount(0));
dispatch(module.exports.setSessionError(err));
return;
}
var count = parseInt(body.msg_count, 10);
var count = parseInt(body.count, 10);
dispatch(module.exports.setCount(count));
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment