From 8999a6ea292f497a10a2d0d3d2b0748f2dbea68d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 28 Oct 2022 19:08:48 +0200 Subject: [PATCH] fix --- files/routes/posts.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 64650036d..c27aaf1ab 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -790,9 +790,6 @@ def submit_post(v, sub=None): if y.startswith(x.domain): return error(f'Remove the banned link "{x.domain}" and try again!
Reason for link ban: "{x.reason}"') - domain_obj = get_domain(domain) - if not domain_obj: domain_obj = get_domain(domain+parsed_url.path) - if "twitter.com" == domain: try: embed = requests.get("https://publish.twitter.com/oembed", params={"url":url, "omit_script":"t"}, timeout=5).json()["html"]