From cfa74f84e7a14874697dd0b96e964ab4a8ec8a3d Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 6 Mar 2023 19:30:18 +0900 Subject: [PATCH] Remove instance users from user list to show --- plume-models/src/users.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index b3dd0368..8dad4081 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -431,6 +431,7 @@ impl User { pub fn get_local_page(conn: &Connection, (min, max): (i32, i32)) -> Result> { users::table .filter(users::instance_id.eq(Instance::get_local()?.id)) + .filter(users::role.ne(Role::Instance as i32)) .order(users::username.asc()) .offset(min.into()) .limit((max - min).into())