This commit is contained in:
Aevann1 2021-09-15 02:58:45 +02:00
parent ea6bdaa2b5
commit 55754abf30
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")