Aevann 2024-02-12 17:04:18 +02:00
parent 1da6382336
commit 89b65fda0e
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
#don't allow something like this [https://rԁrama.net/leaderboard](https://iplogger.org/1fRKk7)
if not snappy:
string_domain = tldextract.extract(str(link.string)).registered_domain
if string_domain and string_domain != tldextract.extract(href).registered_domain:
if string_domain and link.string != href:
link.string = href
#insert target="_blank" and ref="nofollower noopener" for external link