From 6fb3fd33da4acc0feaef68383117f074cfc85996 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Sep 2021 15:09:09 +0200 Subject: [PATCH] fdsf --- 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 ee03170a2..f9571b922 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -896,12 +896,12 @@ def ban_user(user_id, v): if 'reason' in request.args: if reason.startswith("/post/"): - post = reason.split("/post/")[1].split("/")[0] + post = reason.split("/post/")[1] post = get_post(post) post.bannedfor = True g.db.add(post) elif reason.startswith("/comment/"): - comment = reason.split("/comment/")[1].split("/")[0] + comment = reason.split("/comment/")[1] comment = get_comment(comment) comment.bannedfor = True g.db.add(comment)