delete /comments

master
Aevann 2022-12-30 09:35:32 +02:00
parent 66f70bb32f
commit 6927009b3a
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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