remove wrong emojify usage in old glitch components

This commit is contained in:
Ondřej Hruška
2017-09-28 11:03:23 +02:00
parent 74e4fc8f8a
commit cf24ce7e03
4 changed files with 9 additions and 28 deletions

View File

@@ -22,12 +22,8 @@ Imports:
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import escapeTextContentForBrowser from 'escape-html';
import { FormattedMessage } from 'react-intl';
// Mastodon imports //
import emojify from '../../../mastodon/emoji';
/* * * * */
/*
@@ -99,9 +95,7 @@ generate the message.
>
<b
dangerouslySetInnerHTML={{
__html : emojify(escapeTextContentForBrowser(
account.get('display_name') || account.get('username')
)),
__html : account.get('display_name_html') || account.get('username'),
}}
/>
</a>