diff --git a/files/routes/comments.py b/files/routes/comments.py index 58f407966..475d8ffbe 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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/") diff --git a/files/routes/users.py b/files/routes/users.py index 581de7a65..519e798ec 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -314,10 +314,7 @@ def messagereply(v): g.db.commit() - return jsonify({"html": render_template("comments.html", - v=v, - comments=[new_comment], - )}) + return render_template("comments.html", v=v, comments=[new_comment]) @app.get("/2faqr/") @auth_required diff --git a/files/templates/comments.html b/files/templates/comments.html index ba934e117..5c7d2476d 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -33,7 +33,7 @@ {% if v %} {% include "award_modal.html" %} - + {% endif %} diff --git a/files/templates/submission.html b/files/templates/submission.html index d32f5af8a..d223fe21f 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -36,7 +36,7 @@ {% if 'marsey.tech' in request.host %} {% if v %} - + {% include "award_modal.html" %} {% include "emoji_modal.html" %} {% include "gif_modal.html" %}