0
0
Fork 0

Fix #1491 - Fix broken notifications, broken Link header parsing for exclude_types (#1548)

This commit is contained in:
Eugen 2017-04-11 22:53:58 +02:00 committed by GitHub
parent 2f2b84bfbb
commit b22b2cbfac
9 changed files with 60 additions and 84 deletions

View file

@ -79,14 +79,14 @@ const Notification = React.createClass({
const link = <Permalink className='notification__display-name' style={linkStyle} href={account.get('url')} title={account.get('acct')} to={`/accounts/${account.get('id')}`} dangerouslySetInnerHTML={displayNameHTML} />;
switch(notification.get('type')) {
case 'follow':
return this.renderFollow(account, link);
case 'mention':
return this.renderMention(notification);
case 'favourite':
return this.renderFavourite(notification, link);
case 'reblog':
return this.renderReblog(notification, link);
case 'follow':
return this.renderFollow(account, link);
case 'mention':
return this.renderMention(notification);
case 'favourite':
return this.renderFavourite(notification, link);
case 'reblog':
return this.renderReblog(notification, link);
}
}