fix 403 errors on unrelated text

master
Aevann1 2022-07-03 05:42:15 +02:00
parent 6c5b5a5314
commit 076fad1108
1 changed files with 0 additions and 4 deletions

View File

@ -399,10 +399,6 @@ def filter_emojis_only(title, edit=False, graceful=False):
else: return title.replace('\n','').strip()
def normalize_url(url):
if '\\' in url:
print(url, flush=True)
abort(403)
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/r/', url)
url = url.replace("https://youtu.be/", "https://youtube.com/watch?v=") \