better stripping syntax

master
Aevann1 2022-09-05 03:44:38 +02:00
parent 0271d4488f
commit 6727d4005c
1 changed files with 2 additions and 2 deletions

View File

@ -655,7 +655,7 @@ def is_repost():
url = urlunparse(new_url)
if url.endswith('/'): url = url[:-1]
url = url.rstrip('/')
search_url = url.replace('%', '').replace('\\', '').replace('_', '\_').strip()
repost = g.db.query(Submission).filter(
@ -764,7 +764,7 @@ def submit_post(v, sub=None):
url = urlunparse(new_url)
if url.endswith('/'): url = url[:-1]
url = url.rstrip('/')
search_url = url.replace('%', '').replace('\\', '').replace('_', '\_').strip()
repost = g.db.query(Submission).filter(