From f3ca015e17a4edc7d72f41c5cfe74375157d0426 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 26 May 2020 20:54:02 -0500 Subject: [PATCH] Open links in a new tab, fixes #98 --- app/gabsocial/components/status_content.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/gabsocial/components/status_content.js b/app/gabsocial/components/status_content.js index edc32184f..cba7a816d 100644 --- a/app/gabsocial/components/status_content.js +++ b/app/gabsocial/components/status_content.js @@ -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')}`);