forked from MarseyWorld/MarseyWorld
master
parent
69b6bf97d3
commit
88c3eb9c93
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue