]> cat aescling's git repositories - mastodon.git/commitdiff
Add rel="noopener" to links to remote profiles (#19014)
authorShlee <github@shl.ee>
Fri, 26 Aug 2022 00:12:46 +0000 (09:42 +0930)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:28:02 +0000 (00:28 -0400)
* Update timeline_hint.js

* Update timeline_hint.js

app/javascript/mastodon/components/timeline_hint.js

index fb55a62ccaee24ad0d5f4acd871717e6d8802bb0..ac9a79dcc0d61802cf7d78caa71b0914bc2069d1 100644 (file)
@@ -6,7 +6,7 @@ const TimelineHint = ({ resource, url }) => (
   <div className='timeline-hint'>
     <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are not displayed.' values={{ resource }} /></strong>
     <br />
-    <a href={url} target='_blank'><FormattedMessage id='account.browse_more_on_origin_server' defaultMessage='Browse more on the original profile' /></a>
+    <a href={url} target='_blank' rel='noopener'><FormattedMessage id='account.browse_more_on_origin_server' defaultMessage='Browse more on the original profile' /></a>
   </div>
 );