This commit is contained in:
Aevann1 2021-07-24 20:49:02 +02:00
parent af1f66222e
commit 0a88fd57ac
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;