diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 2acc9d777..28b03a108 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -399,7 +399,7 @@ def filter_emojis_only(title, edit=False, graceful=False): else: return title.replace('\n','').strip() def normalize_url(url): - url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\2/', url) + url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\3/', url) url = url.replace("https://youtu.be/", "https://youtube.com/watch?v=") \ .replace("https://music.youtube.com/watch?v=", "https://youtube.com/watch?v=") \