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

@ -33,6 +33,7 @@ import {
isBrowser,
isImage,
pictrsDeleteToast,
relTags,
setupTippy,
toast,
validTitle,
@ -219,7 +220,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
this.state.postForm.url
)}`}
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
rel="noopener"
rel={relTags}
>
archive.org {i18n.t("archive_link")}
</a>
@ -228,7 +229,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
this.state.postForm.url
)}`}
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
rel="noopener"
rel={relTags}
>
ghostarchive.org {i18n.t("archive_link")}
</a>
@ -237,7 +238,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
this.state.postForm.url
)}`}
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
rel="noopener"
rel={relTags}
>
archive.today {i18n.t("archive_link")}
</a>