master
Aevann1 2021-09-15 02:58:45 +02:00
parent 46a99f14ae
commit 7663994423
2 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ def api_comment(v):
g.db.rollback()
abort(413)
upload_ibb(file=file)
url = upload_ibb(file=file)
body = request.form.get("body") + f"\n![]({url})"
body = body.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")

View File

@ -117,7 +117,7 @@ def settings_profile_post(v):
if request.headers.get("Authorization"): return {"error": f"Image files only"}, 400
else: return render_template("settings_profile.html", v=v, error=f"Image files only."), 400
upload_ibb(file=file)
url = upload_ibb(file=file)
bio += f"\n\n![]({url})"