forked from MarseyWorld/MarseyWorld
dffd
parent
b2e1305871
commit
d154b46082
|
@ -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…
Reference in New Issue