remotes/1693045480750635534/spooky-22
Aevann1 2022-02-06 17:52:31 +02:00
parent 84e7d6e761
commit 83aff7ba5c
3 changed files with 4 additions and 4 deletions

View File

@ -253,7 +253,7 @@ def post_id(pid, anything=None, v=None, sub=None):
else: template = "submission.html"
return render_template(template, v=v, p=post, ids=list(ids), sort=sort, render_replies=True, offset=offset, sub=post.subr)
@app.post("/viewmore/<pid>/<sort>/<offset>")
@app.get("/viewmore/<pid>/<sort>/<offset>")
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@auth_desired
def viewmore(v, pid, sort, offset):
@ -356,7 +356,7 @@ def viewmore(v, pid, sort, offset):
return render_template("comments.html", v=v, comments=comments, ids=list(ids), render_replies=True, pid=pid, sort=sort, offset=offset, ajax=True)
@app.post("/morecomments/<cid>")
@app.get("/morecomments/<cid>")
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@auth_desired
def morecomments(v, cid):

View File

@ -920,7 +920,7 @@
{% include "expanded_image_modal.html" %}
<script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
<script src="/static/assets/js/comments.js?a=241"></script>
<script src="/static/assets/js/comments.js?a=242"></script>
<script>
{% if p and (not v or v.highlightcomments) %}

View File

@ -883,7 +883,7 @@
</div>
{% if offset %}
<script src="/static/assets/js/viewmore.js?a=240"></script>
<script src="/static/assets/js/viewmore.js?a=241"></script>
{% endif %}
{% elif not p.replies and p.deleted_utc == 0 %}