- POSTGRES_DB=lemmy
volumes:
- ./volumes/postgres_gamma:/var/lib/postgresql/data
- pictrs_gamma:
- image: asonix/pictrs:v0.1.13-r0
- user: 991:991
- volumes:
- - ./volumes/pictrs_gamma:/mnt
iframely:
- image: dogbin/iframely:latest
+ image: jolt/iframely:v1.4.3
volumes:
- ../iframely.config.local.js:/iframely/config.local.js:ro
return Err(APIError::err("not_an_admin").into());
}
- match User_::ban_user(&conn, data.user_id, data.ban) {
- Ok(user) => user,
- Err(_e) => return Err(APIError::err("couldnt_update_user").into()),
- };
+ let ban = data.ban;
- let ban_user = move |conn: &'_ _| User_::ban_user(conn, user_id, ban);
++ let banned_user_id = data.user_id;
++ let ban_user = move |conn: &'_ _| User_::ban_user(conn, banned_user_id, ban);
+ if blocking(pool, ban_user).await?.is_err() {
+ return Err(APIError::err("couldnt_update_user").into());
+ }
// Mod tables
let expires = match data.expires {