forked from treehouse/mastodon
Compare commits
2 Commits
384ac613d8
...
5bffab2523
Author | SHA1 | Date |
---|---|---|
Robert Gerus | 5bffab2523 | |
Robert Gerus | 9626d9fee6 |
|
@ -279,9 +279,9 @@ export default class StatusContent extends React.PureComponent {
|
|||
|
||||
if (status.get('quote', null) !== null) {
|
||||
let quoteStatus = status.get('quote');
|
||||
let quoteStatusContent = { __html: quoteStatus.get('contentHtml') };
|
||||
let quoteStatusContent = <a href={quoteStatus.get('url')} target='_blank' rel='noopener noreferrer' dangerouslySetInnerHTML={{ __html: quoteStatus.get('contentHtml') }} />;
|
||||
let quoteStatusAccount = quoteStatus.get('account');
|
||||
let quoteStatusDisplayName = { __html: quoteStatusAccount.get('display_name_html') };
|
||||
let quoteStatusDisplayName = <a href={quoteStatus.getIn(['account', 'url'])} onClick={this.handleAccountClick} dangerouslySetInnerHTML={{ __html: quoteStatusAccount.get('display_name_html') }} />;
|
||||
|
||||
quote = (
|
||||
<div class="status__quote">
|
||||
|
@ -293,11 +293,14 @@ export default class StatusContent extends React.PureComponent {
|
|||
id='quote-right'
|
||||
aria-hidden='true'
|
||||
key='icon-quote-right' />
|
||||
<strong class="display-name__html"
|
||||
dangerouslySetInnerHTML={quoteStatusDisplayName} />
|
||||
<strong class="display-name__html">
|
||||
{quoteStatusDisplayName}
|
||||
</strong>
|
||||
</span>
|
||||
</bdi>
|
||||
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
||||
<div>
|
||||
{quoteStatusContent}
|
||||
</div>
|
||||
</blockquote>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue