diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 5b1c8ee0b..26902025a 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -10,6 +10,7 @@ import { mdToHtml, pictrsDeleteToast, randomStr, + relTags, setupTippy, setupTribute, toast, @@ -297,7 +298,7 @@ export class MarkdownTextArea extends Component< href={markdownHelpUrl} class="btn btn-sm text-muted font-weight-bold" title={i18n.t("formatting_help")} - rel="noopener" + rel={relTags} > diff --git a/src/shared/components/common/sort-select.tsx b/src/shared/components/common/sort-select.tsx index 9504756e9..118806476 100644 --- a/src/shared/components/common/sort-select.tsx +++ b/src/shared/components/common/sort-select.tsx @@ -1,7 +1,7 @@ import { Component, linkEvent } from "inferno"; import { SortType } from "lemmy-js-client"; import { i18n } from "../../i18next"; -import { randomStr, sortingHelpUrl } from "../../utils"; +import { randomStr, relTags, sortingHelpUrl } from "../../utils"; import { Icon } from "./icon"; interface SortSelectProps { @@ -71,7 +71,7 @@ export class SortSelect extends Component { diff --git a/src/shared/components/community/community-link.tsx b/src/shared/components/community/community-link.tsx index fee38eb2f..4ea7f8aef 100644 --- a/src/shared/components/community/community-link.tsx +++ b/src/shared/components/community/community-link.tsx @@ -1,7 +1,7 @@ import { Component } from "inferno"; import { Link } from "inferno-router"; import { CommunitySafe } from "lemmy-js-client"; -import { hostname, showAvatars } from "../../utils"; +import { hostname, relTags, showAvatars } from "../../utils"; import { PictrsImage } from "../common/pictrs-image"; interface CommunityLinkProps { @@ -48,6 +48,7 @@ export class CommunityLink extends Component { title={apubName} className={`${this.props.muted ? "text-muted" : ""}`} href={link} + rel={relTags} > {this.avatarAndName(displayName)} diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index cdab971c2..bd624ee52 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -38,6 +38,7 @@ import { getPageFromProps, getSortTypeFromProps, notifyPost, + relTags, restoreScrollPosition, saveCommentRes, saveScrollPosition, @@ -371,7 +372,7 @@ export class Community extends Component { this.state.sort )} title="RSS" - rel="noopener" + rel={relTags} > diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index d64a8528d..634868809 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -43,6 +43,7 @@ import { mdToHtml, notifyPost, numToSI, + relTags, restoreScrollPosition, saveCommentRes, saveScrollPosition, @@ -690,7 +691,7 @@ export class Home extends Component { {this.state.listingType == ListingType.All && ( @@ -699,7 +700,7 @@ export class Home extends Component { {this.state.listingType == ListingType.Local && ( @@ -710,7 +711,7 @@ export class Home extends Component { diff --git a/src/shared/components/home/instances.tsx b/src/shared/components/home/instances.tsx index c9a7b1ff9..c71338313 100644 --- a/src/shared/components/home/instances.tsx +++ b/src/shared/components/home/instances.tsx @@ -1,7 +1,7 @@ import { Component } from "inferno"; import { GetSiteResponse } from "lemmy-js-client"; import { i18n } from "../../i18next"; -import { setIsoData } from "../../utils"; +import { relTags, setIsoData } from "../../utils"; import { HtmlTags } from "../common/html-tags"; interface InstancesState { @@ -60,7 +60,7 @@ export class Instances extends Component {