status: turn the displayed quote into a link to the original post

Robert Gerus 2022-12-27 22:15:24 +01:00
parent 9626d9fee6
commit 5bffab2523
1 changed files with 4 additions and 2 deletions

View File

@ -279,7 +279,7 @@ 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 = <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>
</span>
</bdi>
<div dangerouslySetInnerHTML={quoteStatusContent} />
<div>
{quoteStatusContent}
</div>
</blockquote>
</div>
);