Remove instance users from user list to show

This commit is contained in:
Kitaiti Makoto 2023-03-06 19:30:18 +09:00
parent 97cbe7f446
commit cfa74f84e7

View file

@ -431,6 +431,7 @@ impl User {
pub fn get_local_page(conn: &Connection, (min, max): (i32, i32)) -> Result<Vec<User>> {
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())