From df92de16a62cf54d8668dfb56f358dfa5c69ebc0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 31 Oct 2023 21:15:10 +0300 Subject: [PATCH] approval logic improvement --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index a7c38f0e2..f4741192b 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1392,7 +1392,7 @@ def remove_post(post_id, v): def approve_post(post_id, v): post = get_post(post_id) - if post.chudded: + if post.chudded and post.ban_reason == 'AutoJanny': abort(400, "You can't bypass the chud award!") if post.is_banned: @@ -1641,7 +1641,7 @@ def remove_comment(c_id, v): def approve_comment(c_id, v): comment = get_comment(c_id) - if comment.chudded: + if comment.chudded and comment.ban_reason == 'AutoJanny': abort(400, "You can't bypass the chud award!") if comment.is_banned: