From a2e926ef17ed1a3765d7939fa3b3372734fb7063 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 15 Mar 2023 04:13:39 +0200 Subject: [PATCH] minor fix --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 91f5e0238..49e34891d 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -979,7 +979,8 @@ def ban_user(id, v): try: post = int(request.values["reason"].split("/post/")[1].split(None, 1)[0]) except: abort(400) post = get_post(post) - post.bannedfor = f'{duration} by @{v.username}' + if post.sub != 'chudrama': + post.bannedfor = f'{duration} by @{v.username}' g.db.add(post) elif request.values["reason"].startswith("/comment/"): try: comment = int(request.values["reason"].split("/comment/")[1].split(None, 1)[0])