Open links in a new tab, fixes #98

This commit is contained in:
Alex Gleason 2020-05-26 20:54:02 -05:00
parent fabb300caf
commit f3ca015e17
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -44,6 +44,8 @@ export default class StatusContent extends React.PureComponent {
continue;
}
link.classList.add('status-link');
link.setAttribute('rel', 'nofollow noopener');
link.setAttribute('target', '_blank');
let mention = this.props.status.get('mentions').find(item => link.href === `${item.get('url')}`);