From db2a8236dba1bbcfb798e5191eae9f9988228576 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 9 May 2022 16:07:29 +0200 Subject: [PATCH] af --- files/routes/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 6d0b15dcb..0cd3e1764 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1344,6 +1344,9 @@ def unban_post(post_id, v): post = g.db.query(Submission).filter_by(id=post_id).one_or_none() + if post.author.agendaposter and AGENDAPOSTER_PHRASE not in post.body.lower(): + return {"error": "You can't bypass the chud award!"} + if not post: abort(400)