forked from MarseyWorld/MarseyWorld
master
parent
46a99f14ae
commit
7663994423
|
@ -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")
|
||||
|
|
|
@ -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})"
|
||||
|
||||
|
|
Loading…
Reference in New Issue