This commit is contained in:
Aevann1 2021-11-25 23:33:00 +02:00
parent 864c56d370
commit 111da5fca8

View file

@ -819,7 +819,7 @@ def ban_user(user_id, v):
post = get_post(post)
post.bannedfor = True
g.db.add(post)
elif reason.startswith("/comment/"):
elif reason.startswith("/comment/"):
comment = int(reason.split("/comment/")[1].split(None, 1)[0])
comment = get_comment(comment)
comment.bannedfor = True