From d4613c33089b6b89cd707b9a1e4faf9f1317d7c6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 1 Jul 2023 00:35:39 +0300 Subject: [PATCH] allow ppl to make reposts --- files/routes/posts.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e1095e0bb..20cf9b197 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -527,15 +527,6 @@ def submit_post(v:User, sub=None): url = url.rstrip('/') - search_url = url.replace('%', '').replace('\\', '').replace('_', '\_').strip() - repost = g.db.query(Post).filter( - Post.url.ilike(search_url), - Post.deleted_utc == 0, - Post.is_banned == False - ).first() - if repost and FEATURES['REPOST_DETECTION'] and not v.admin_level >= PERMS['POST_BYPASS_REPOST_CHECKING']: - return {"post_id": repost.id, "success": False} - if v.admin_level < PERMS["IGNORE_DOMAIN_BAN"]: y = tldextract.extract(url).registered_domain + parsed_url.path y = y.lower()