forked from MarseyWorld/MarseyWorld
dffd
parent
b2e1305871
commit
d154b46082
|
@ -18,6 +18,7 @@ def api_flag_post(pid, v):
|
||||||
if existing:
|
if existing:
|
||||||
return "", 409
|
return "", 409
|
||||||
reason = request.form.get("reason", "")[:100].strip()
|
reason = request.form.get("reason", "")[:100].strip()
|
||||||
|
print(reason)
|
||||||
flag = Flag(post_id=post.id,
|
flag = Flag(post_id=post.id,
|
||||||
user_id=v.id,
|
user_id=v.id,
|
||||||
reason=reason,
|
reason=reason,
|
||||||
|
|
|
@ -263,6 +263,7 @@
|
||||||
submitbutton=document.getElementById("reportPostButton");
|
submitbutton=document.getElementById("reportPostButton");
|
||||||
|
|
||||||
reason=document.getElementById("reason").value;
|
reason=document.getElementById("reason").value;
|
||||||
|
console.log(reason)
|
||||||
|
|
||||||
submitbutton.onclick = function() {
|
submitbutton.onclick = function() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue