fdsfsdsfd
This commit is contained in:
parent
f6667ed942
commit
0e505e894e
5 changed files with 8 additions and 14 deletions
|
@ -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>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue