From d154b46082ffde9486eeded6bb75c013a8d6777d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 24 Jul 2021 20:24:48 +0200 Subject: [PATCH] dffd --- drama/routes/flagging.py | 1 + drama/templates/default.html | 1 + 2 files changed, 2 insertions(+) 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() {