|
|
|
@ -65,11 +65,11 @@ class Notification extends ImmutablePureComponent {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render () { // eslint-disable-line consistent-return
|
|
|
|
|
render () {
|
|
|
|
|
const { notification } = this.props;
|
|
|
|
|
const account = notification.get('account');
|
|
|
|
|
const displayName = account.get('display_name').length > 0 ? account.get('display_name') : account.get('username');
|
|
|
|
|
const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) };
|
|
|
|
|
const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) };
|
|
|
|
|
const link = <Permalink className='notification__display-name' href={account.get('url')} title={account.get('acct')} to={`/accounts/${account.get('id')}`} dangerouslySetInnerHTML={displayNameHTML} />;
|
|
|
|
|
|
|
|
|
|
switch(notification.get('type')) {
|
|
|
|
@ -82,6 +82,8 @@ class Notification extends ImmutablePureComponent {
|
|
|
|
|
case 'reblog':
|
|
|
|
|
return this.renderReblog(notification, link);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|