quote posts: open links to quoted account/post in the same window

WIP: reloads the page because js events do not get properly attached because ???
open-quote-links-in-same-window
Robert Gerus 2022-12-28 21:19:29 +01:00
parent 98d9c84c8b
commit 3d84c2562f
1 changed files with 2 additions and 2 deletions

View File

@ -294,12 +294,12 @@ export default class StatusContent extends React.PureComponent {
aria-hidden='true' aria-hidden='true'
key='icon-quote-right' /> key='icon-quote-right' />
<strong class="display-name__html"> <strong class="display-name__html">
<a onClick={this.handleAccountClick} href={quoteStatus.getIn(['account', 'url'])} dangerouslySetInnerHTML={quoteStatusDisplayName} /> <a onClick={this.handleAccountClick} href={`/@${quoteStatus.getIn(['account', 'acct'])}`} dangerouslySetInnerHTML={quoteStatusDisplayName} />
</strong> </strong>
</span> </span>
</bdi> </bdi>
<div> <div>
<a href={quoteStatus.get('url')} target='_blank' rel='noopener noreferrer' dangerouslySetInnerHTML={quoteStatusContent} /> <a onClick={this.handleClick} href={`/@${quoteStatus.getIn(['account', 'acct'])}\/${quoteStatus.get('id')}`} rel='noopener noreferrer' dangerouslySetInnerHTML={quoteStatusContent} />
</div> </div>
</blockquote> </blockquote>
</div> </div>