fdsfsdsfd

This commit is contained in:
Aevann1 2021-10-04 01:10:39 +02:00
parent f6667ed942
commit 0e505e894e
5 changed files with 8 additions and 14 deletions

View file

@ -575,10 +575,7 @@ def api_comment(v):
g.db.commit()
if request.headers.get("Authorization"): return c.json
else: return jsonify({"html": render_template("comments.html",
v=v,
comments=[c],
)})
else: return render_template("comments.html", v=v, comments=[c])
@ -797,7 +794,7 @@ def edit_comment(cid, v):
g.db.commit()
return jsonify({"html": c.body_html})
return c.body_html
@app.post("/delete/comment/<cid>")