consisteny in _blank

pull/227/head
Aevann 2024-05-24 06:44:37 +03:00
parent 1a1462bab2
commit a134128f02
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: