From f62e726c3cf5eca83f75b24c687fbbb04b6c651b Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 22 Oct 2024 15:09:28 +0300 Subject: [PATCH] fix admin getting shadowbanned when they shadowban someone --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index c941ebfa3..9488bd7a6 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -893,7 +893,7 @@ def shadowban(user_id, v): reason = reason_regex_post.sub(r'\1', reason) reason = reason_regex_comment.sub(r'\1', reason) - v.shadowban(reason=reason) + user.shadowban(reason=reason) check_for_alts(user)