Aevann 2023-11-28 21:38:55 +02:00
parent e28a2f4001
commit 64c3a79522
1 changed files with 1 additions and 3 deletions

View File

@ -730,8 +730,6 @@ def is_whitelisted(domain, k):
def normalize_url(url):
url = unquote(url)
url = url.replace("reddit.com/user/", "reddit.com/u/")
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\5', url)
@ -799,7 +797,7 @@ def normalize_url(url):
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = unquote(url).rstrip('=')
url = url.rstrip('=')
return url