diff --git a/files/routes/admin.py b/files/routes/admin.py index 6a7fa77c6..b6d108d2b 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -641,7 +641,7 @@ def ban_user(user_id, v): post.bannedfor = True g.db.add(post) elif reason.startswith("/comment/"): - comment = reason.split("/post/")[1].split("/")[0] + comment = reason.split("/comment/")[1].split("/")[0] comment = get_comment(comment) comment.bannedfor = True g.db.add(comment)