forked from rDrama/rDrama
fdsfsdsfd
parent
f8c89b1b1c
commit
87a4e15499
|
@ -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>")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in New Issue