Revert "consisteny in _blank"

This reverts commit a134128f02.
pull/227/head
Aevann 2024-05-25 00:34:10 +03:00
parent ed4384e05e
commit f20e8a19bc
1 changed files with 1 additions and 1 deletions

View File

@ -575,8 +575,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
link.string = href
#insert target="_blank" and ref="nofollower noopener" for external link
link["target"] = "_blank"
if not href.startswith('/') and not href.startswith(f'{SITE_FULL}/'):
link["target"] = "_blank"
link["rel"] = "nofollow noopener"
if has_transform: