forked from MarseyWorld/MarseyWorld
delete /comments
parent
66f70bb32f
commit
6927009b3a
|
@ -216,8 +216,8 @@ function postComment(fullname, hide){
|
|||
catch(e) {}
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
url = '/comments/';
|
||||
xhr.open("post", url);
|
||||
url = '/comment';
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
xhr.onload=function(){
|
||||
let data
|
||||
|
|
|
@ -81,7 +81,6 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
|
|||
else: template = "submission.html"
|
||||
return render_template(template, v=v, p=post, sort=sort, comment_info=comment_info, render_replies=True, sub=post.subr)
|
||||
|
||||
@app.post("/comments/")
|
||||
@app.post("/comment")
|
||||
@limiter.limit("1/second;20/minute;200/hour;1000/day")
|
||||
@auth_required
|
||||
|
|
Loading…
Reference in New Issue