This commit is contained in:
Aevann1 2022-02-06 12:49:24 +02:00
parent f8533c0b06
commit 2d133cacda
3 changed files with 7 additions and 7 deletions

View file

@ -977,7 +977,7 @@ def submit_post(v, sub=None):
body += f"\n\n{url}"
else:
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": "Image/Video files only"}, 400
return render_template("submit.html", v=v, error=f"Image/Video files only."), 400
return render_template("submit.html", v=v, error="Image/Video files only."), 400
if '#fortune' in body:
body = body.replace('#fortune', '')