This commit is contained in:
Aevann1 2022-04-10 18:27:27 +02:00
parent 0b1180d43e
commit 2ccc130cea
2 changed files with 0 additions and 8 deletions

View file

@ -844,9 +844,6 @@ def api_is_repost():
url = urlunparse(new_url)
if url.endswith('/'): url = url[:-1]
if reddit_post_regex.fullmatch(url):
url = reddit_post_regex.sub(r'https://old.reddit.com/\1', url)
search_url = url.replace('%', '').replace('\\', '').replace('_', '\_').strip()
repost = g.db.query(Submission).filter(
@ -947,9 +944,6 @@ def submit_post(v, sub=None):
url = urlunparse(new_url)
if url.endswith('/'): url = url[:-1]
if reddit_post_regex.fullmatch(url):
url = reddit_post_regex.sub(r'https://old.reddit.com/\1', url)
search_url = url.replace('%', '').replace('\\', '').replace('_', '\_').strip()
repost = g.db.query(Submission).filter(