Make mention links internal, fixes #74

This commit is contained in:
Alex Gleason 2019-08-02 18:29:48 -04:00
parent 1bfbb53c14
commit 524a438a9b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -45,7 +45,7 @@ export default class StatusContent extends React.PureComponent {
} }
link.classList.add('status-link'); link.classList.add('status-link');
let mention = this.props.status.get('mentions').find(item => link.href === `/${item.get('acct')}`); let mention = this.props.status.get('mentions').find(item => link.href === `${item.get('url')}`);
if (mention) { if (mention) {
link.addEventListener('click', this.onMentionClick.bind(this, mention), false); link.addEventListener('click', this.onMentionClick.bind(this, mention), false);