Adding nofollow to links. Fixes #542 (#543)

* Adding nofollow to links. Fixes #542

* Running prettier.
This commit is contained in:
Dessalines 2022-02-24 15:31:44 +00:00 committed by GitHub
parent 2663e19fdc
commit 6684bbeaf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 42 additions and 27 deletions

View file

@ -43,6 +43,7 @@ import {
mdToHtml,
notifyPost,
numToSI,
relTags,
restoreScrollPosition,
saveCommentRes,
saveScrollPosition,
@ -695,7 +696,7 @@ export class Home extends Component<any, HomeState> {
</span>
{this.state.listingType == ListingType.All && (
<>
<a href={allRss} rel="noopener" title="RSS">
<a href={allRss} rel={relTags} title="RSS">
<Icon icon="rss" classes="text-muted small" />
</a>
<link rel="alternate" type="application/atom+xml" href={allRss} />
@ -703,7 +704,7 @@ export class Home extends Component<any, HomeState> {
)}
{this.state.listingType == ListingType.Local && (
<>
<a href={localRss} rel="noopener" title="RSS">
<a href={localRss} rel={relTags} title="RSS">
<Icon icon="rss" classes="text-muted small" />
</a>
<link rel="alternate" type="application/atom+xml" href={localRss} />
@ -712,7 +713,7 @@ export class Home extends Component<any, HomeState> {
{UserService.Instance.myUserInfo &&
this.state.listingType == ListingType.Subscribed && (
<>
<a href={frontRss} title="RSS" rel="noopener">
<a href={frontRss} title="RSS" rel={relTags}>
<Icon icon="rss" classes="text-muted small" />
</a>
<link