dffd
This commit is contained in:
parent
c617a274ad
commit
5c972f773d
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ def api_flag_post(pid, v):
|
|||
if existing:
|
||||
return "", 409
|
||||
reason = request.form.get("reason", "")[:100].strip()
|
||||
print(reason)
|
||||
flag = Flag(post_id=post.id,
|
||||
user_id=v.id,
|
||||
reason=reason,
|
||||
|
|
|
@ -263,6 +263,7 @@
|
|||
submitbutton=document.getElementById("reportPostButton");
|
||||
|
||||
reason=document.getElementById("reason").value;
|
||||
console.log(reason)
|
||||
|
||||
submitbutton.onclick = function() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue