diff --git a/drama/routes/flagging.py b/drama/routes/flagging.py index 47c723456..5162dd03d 100644 --- a/drama/routes/flagging.py +++ b/drama/routes/flagging.py @@ -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, diff --git a/drama/templates/default.html b/drama/templates/default.html index 99676eded..4107a1528 100644 --- a/drama/templates/default.html +++ b/drama/templates/default.html @@ -263,6 +263,7 @@ submitbutton=document.getElementById("reportPostButton"); reason=document.getElementById("reason").value; + console.log(reason) submitbutton.onclick = function() {