th: Merge pull request 'Turn quote author/text into links back to the original profile/post' (#37) from ar/mastodon:turn-quotes-into-links into main

Reviewed-on: https://gitea.treehouse.systems/treehouse/mastodon/pulls/37
This commit is contained in:
Ariadne Conill 2022-12-28 06:59:46 +00:00
commit b77fa64511

View file

@ -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">
<a onClick={this.handleAccountClick} href={quoteStatus.getIn(['account', 'url'])} dangerouslySetInnerHTML={quoteStatusDisplayName} />
</strong>
</span>
</bdi>
<div dangerouslySetInnerHTML={quoteStatusContent} />
<div>
<a href={quoteStatus.get('url')} target='_blank' rel='noopener noreferrer' dangerouslySetInnerHTML={quoteStatusContent} />
</div>
</blockquote>
</div>
);