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

@ -38,6 +38,7 @@ import {
getPageFromProps,
getSortTypeFromProps,
notifyPost,
relTags,
restoreScrollPosition,
saveCommentRes,
saveScrollPosition,
@ -370,7 +371,7 @@ export class Community extends Component<any, State> {
<span class="mr-2">
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
</span>
<a href={communityRss} title="RSS" rel="noopener">
<a href={communityRss} title="RSS" rel={relTags}>
<Icon icon="rss" classes="text-muted small" />
</a>
<link rel="alternate" type="application/atom+xml" href={communityRss} />