remotes/1693045480750635534/spooky-22
Aevann1 2021-10-09 17:26:06 +02:00
parent 840d1992b7
commit b30a8a2c23
1 changed files with 1 additions and 1 deletions

View File

@ -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