always _blank in chat

pull/227/head
Aevann 2024-05-25 00:34:48 +03:00
parent f20e8a19bc
commit e69e9ac2c7
1 changed files with 2 additions and 0 deletions

View File

@ -578,6 +578,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
if not href.startswith('/') and not href.startswith(f'{SITE_FULL}/'):
link["target"] = "_blank"
link["rel"] = "nofollow noopener"
elif chat:
link["target"] = "_blank"
if has_transform:
del link["href"]