From b30a8a2c2396df984f7e54ccac4286d2f9b327cc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 9 Oct 2021 17:26:06 +0200 Subject: [PATCH] dsf --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 980cacf37..4db7c6d82 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -534,7 +534,7 @@ def submit_post(v): if repost: return redirect(repost.permalink) - if not (parsed_url.scheme and parsed_url.netloc) and not request.values.get("body") and not request.files.get("file", None): + if not url and not request.values.get("body") and not request.files.get("file", None): if request.headers.get("Authorization"): return {"error": "`url` or `body` parameter required."}, 400 else: return render_template("submit.html", v=v, error="Please enter a url or some text.", title=title, url=url, body=request.values.get("body", "")), 400