Commit 161f5061 authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

Merge pull request #1590 from mewtaylor/hotfix/message-count-endpoint

[Develop] Hotfix: change message count endpoint
parents 2830257b 75217978
......@@ -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