fdsfsdsfd

remotes/1693045480750635534/spooky-22
Aevann1 2021-10-04 01:10:39 +02:00
parent f8c89b1b1c
commit 87a4e15499
4 changed files with 5 additions and 11 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>")

View File

@ -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/<secret>")
@auth_required

View File

@ -33,7 +33,7 @@
{% if v %}
{% include "award_modal.html" %}
<script src="/assets/js/comments_v.js?v=3"></script>
<script src="/assets/js/comments_v.js?v=4"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>

View File

@ -36,7 +36,7 @@
{% if 'marsey.tech' in request.host %}
{% if v %}
<script src="/assets/js/comments_v.js?v=3"></script>
<script src="/assets/js/comments_v.js?v=4"></script>
{% include "award_modal.html" %}
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}