diff options
author | Ondřej Hruška <ondra@ondrovo.com> | 2017-09-28 11:03:23 +0200 |
---|---|---|
committer | Ondřej Hruška <ondra@ondrovo.com> | 2017-09-28 11:03:23 +0200 |
commit | cf24ce7e0300b8280631efddd58ce576e5cccabf (patch) | |
tree | fb4cd42377619ffb703e436dfb5588a62ba0d183 /app/javascript/glitch/components/notification | |
parent | 74e4fc8f8aea01159e7d24b978322545afb70e94 (diff) |
remove wrong emojify usage in old glitch components
Diffstat (limited to 'app/javascript/glitch/components/notification')
-rw-r--r-- | app/javascript/glitch/components/notification/follow.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/javascript/glitch/components/notification/follow.js b/app/javascript/glitch/components/notification/follow.js index 99a5c6219..e2c21bf35 100644 --- a/app/javascript/glitch/components/notification/follow.js +++ b/app/javascript/glitch/components/notification/follow.js @@ -11,11 +11,9 @@ import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; -import escapeTextContentForBrowser from 'escape-html'; import ImmutablePureComponent from 'react-immutable-pure-component'; // Mastodon imports. -import emojify from '../../../mastodon/emoji'; import Permalink from '../../../mastodon/components/permalink'; import AccountContainer from '../../../mastodon/containers/account_container'; @@ -39,15 +37,14 @@ export default class NotificationFollow extends ImmutablePureComponent { const { account, notification } = this.props; // Links to the display name. - const displayName = account.get('display_name') || account.get('username'); - const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) }; + const displayName = account.get('display_name_html') || account.get('username'); const link = ( <Permalink className='notification__display-name' href={account.get('url')} title={account.get('acct')} to={`/accounts/${account.get('id')}`} - dangerouslySetInnerHTML={displayNameHTML} + dangerouslySetInnerHTML={{ __html: displayName }} /> ); |