dfsfds
This commit is contained in:
parent
0eb7264d91
commit
f166c165e8
1 changed files with 1 additions and 4 deletions
|
@ -512,11 +512,8 @@ def submit_post(v):
|
||||||
if url.startswith("https://streamable.com/") and not url.startswith("https://streamable.com/e/"):
|
if url.startswith("https://streamable.com/") and not url.startswith("https://streamable.com/e/"):
|
||||||
url = url.replace("https://streamable.com/", "https://streamable.com/e/")
|
url = url.replace("https://streamable.com/", "https://streamable.com/e/")
|
||||||
|
|
||||||
if "?" in url: url2 = url.split('?')[0]
|
|
||||||
else: url2 = url
|
|
||||||
|
|
||||||
repost = g.db.query(Submission).options(lazyload('*')).filter(
|
repost = g.db.query(Submission).options(lazyload('*')).filter(
|
||||||
Submission.url.ilike(f'{url2}%'),
|
Submission.url.ilike(f'{url}%'),
|
||||||
Submission.deleted_utc == 0,
|
Submission.deleted_utc == 0,
|
||||||
Submission.is_banned == False
|
Submission.is_banned == False
|
||||||
).first()
|
).first()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue