status: turn displayed username from quotes into links to original profile
parent
384ac613d8
commit
9626d9fee6
|
@ -281,7 +281,7 @@ export default class StatusContent extends React.PureComponent {
|
||||||
let quoteStatus = status.get('quote');
|
let quoteStatus = status.get('quote');
|
||||||
let quoteStatusContent = { __html: quoteStatus.get('contentHtml') };
|
let quoteStatusContent = { __html: quoteStatus.get('contentHtml') };
|
||||||
let quoteStatusAccount = quoteStatus.get('account');
|
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 = (
|
quote = (
|
||||||
<div class="status__quote">
|
<div class="status__quote">
|
||||||
|
@ -293,8 +293,9 @@ export default class StatusContent extends React.PureComponent {
|
||||||
id='quote-right'
|
id='quote-right'
|
||||||
aria-hidden='true'
|
aria-hidden='true'
|
||||||
key='icon-quote-right' />
|
key='icon-quote-right' />
|
||||||
<strong class="display-name__html"
|
<strong class="display-name__html">
|
||||||
dangerouslySetInnerHTML={quoteStatusDisplayName} />
|
{quoteStatusDisplayName}
|
||||||
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
</bdi>
|
</bdi>
|
||||||
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
||||||
|
|
Loading…
Reference in New Issue