dsf
This commit is contained in:
parent
45921735ff
commit
a6fac49071
5 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ function morecomments(cid) {
|
|||
var form = new FormData();
|
||||
form.append("formkey", formkey());
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("post", `/morecomments/${cid}`);
|
||||
xhr.open("get", `/morecomments/${cid}`);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
xhr.onload=function(){
|
||||
if (xhr.status==200) {
|
||||
|
|
|
@ -6,7 +6,7 @@ function viewmore(pid,sort,offset,ids) {
|
|||
form.append("formkey", formkey());
|
||||
form.append("ids", ids);
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("post", `/viewmore/${pid}/${sort}/${offset}`);
|
||||
xhr.open("get", `/viewmore/${pid}/${sort}/${offset}`);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
xhr.onload=function(){
|
||||
if (xhr.status==200) {
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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) %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue