From: Dessalines Date: Wed, 1 Jul 2020 12:22:41 +0000 (-0400) Subject: Fixing ban user bug. Fixes #876 X-Git-Url: http://these/git/%22https:/join-lemmy.org/readmes/%7Bpost.url%7D?a=commitdiff_plain;h=c239a5f0e5cc6c5f9fe243adbb79af49d4a0d6d4;p=lemmy.git Fixing ban user bug. Fixes #876 --- diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 0b6458e7..8f09ea5f 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -710,7 +710,7 @@ impl Perform for Oper { return Err(APIError::err("not_an_admin").into()); } - match User_::ban_user(&conn, user_id, data.ban) { + match User_::ban_user(&conn, data.user_id, data.ban) { Ok(user) => user, Err(_e) => return Err(APIError::err("couldnt_update_user").into()), };