diff --git a/files/routes/static.py b/files/routes/static.py index 350e73d75..a757a72a6 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -282,6 +282,8 @@ def api(v): @auth_desired def contact(v): listing, total, page = modmail_listing(v) + err = v and v.is_suspended and 'underage' in v.ban_reason.lower() + print(err, flush=True) return render_template("contact.html", v=v, listing=listing, @@ -289,6 +291,7 @@ def contact(v): page=page, standalone=True, render_replies=True, + err=err, ) @app.post("/contact")