Open links in a new tab, fixes #98
This commit is contained in:
parent
fabb300caf
commit
f3ca015e17
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ export default class StatusContent extends React.PureComponent {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
link.classList.add('status-link');
|
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')}`);
|
let mention = this.props.status.get('mentions').find(item => link.href === `${item.get('url')}`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue