forked from treehouse/mastodon
status: turn the displayed quote into a link to the original post
parent
9626d9fee6
commit
5bffab2523
|
@ -279,7 +279,7 @@ export default class StatusContent extends React.PureComponent {
|
||||||
|
|
||||||
if (status.get('quote', null) !== null) {
|
if (status.get('quote', null) !== null) {
|
||||||
let quoteStatus = status.get('quote');
|
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 quoteStatusAccount = quoteStatus.get('account');
|
||||||
let quoteStatusDisplayName = <a href={quoteStatus.getIn(['account', 'url'])} onClick={this.handleAccountClick} dangerouslySetInnerHTML={{ __html: quoteStatusAccount.get('display_name_html') }} />;
|
let quoteStatusDisplayName = <a href={quoteStatus.getIn(['account', 'url'])} onClick={this.handleAccountClick} dangerouslySetInnerHTML={{ __html: quoteStatusAccount.get('display_name_html') }} />;
|
||||||
|
|
||||||
|
@ -298,7 +298,9 @@ export default class StatusContent extends React.PureComponent {
|
||||||
</strong>
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
</bdi>
|
</bdi>
|
||||||
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
<div>
|
||||||
|
{quoteStatusContent}
|
||||||
|
</div>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue