master
Aevann1 2021-07-24 20:49:02 +02:00
parent 69b6bf97d3
commit 88c3eb9c93
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ def api_flag_comment(cid, v):
return "", 409
reason = request.form.get("reason", "")[:100].strip()
print(reason)
flag = CommentFlag(comment_id=comment.id,
user_id=v.id,
reason=reason,

View File

@ -229,6 +229,7 @@
xhr.open("POST", '/api/flag/comment/'+id, true);
var form = new FormData()
form.append("formkey", formkey());
console.log(document.getElementById("reason").value)
form.append("reason", document.getElementById("reason").value);
xhr.withCredentials=true;