}
let person_id = person.id;
let community_id = community.id;
- let is_banned = CommunityPersonBanView::get(context.pool(), person_id, community_id)
+ let is_banned = CommunityPersonBanView::get(&mut context.pool(), person_id, community_id)
.await
.is_ok();
if is_banned {
let mod_ = mod_id.dereference(context).await?;
let is_mod_or_admin =
- CommunityView::is_mod_or_admin(context.pool(), mod_.id, community_id).await?;
+ CommunityView::is_mod_or_admin(&mut context.pool(), mod_.id, community_id).await?;
if is_mod_or_admin {
return Ok(());
}