mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Migrate to new API route for message count. Resolves GH-316 Resolves GH-95
This commit is contained in:
parent
4ab7cfef6b
commit
86c93df740
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ var Navigation = React.createClass({
|
|||
getMessageCount: function () {
|
||||
this.api({
|
||||
method: 'get',
|
||||
uri: '/proxy/users/' + this.state.session.user.username + '/activity/count'
|
||||
uri: '/users/' + this.state.session.user.username + '/messages/count'
|
||||
}, function (err, body) {
|
||||
if (err) return this.setState({'unreadMessageCount': 0});
|
||||
if (body) {
|
||||
|
@ -197,7 +197,7 @@ var Navigation = React.createClass({
|
|||
<div className={classes}>
|
||||
<ul>
|
||||
<li className="logo"><a href="/"></a></li>
|
||||
|
||||
|
||||
<li className="link create">
|
||||
<a href="/projects/editor">
|
||||
<FormattedMessage
|
||||
|
|
Loading…
Reference in a new issue