diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 180cd8a86..137277c3f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -756,9 +756,6 @@ def is_whitelisted(domain, k): def normalize_url(url): - if 'wikipedia.org/wiki/' not in url: - url = unquote(url) - url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\5', url) url = url.replace("https://music.youtube.com", "https://youtube.com") \ @@ -824,9 +821,6 @@ def normalize_url(url): url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url) - if 'wikipedia.org/wiki/' not in url: - url = unquote(url) - return url.rstrip('=') def normalize_url_gevent(url):