- // Mod tables
- let form = ModBanFromCommunityForm {
- mod_person_id: local_user_view.person.id,
- other_person_id: data.person_id,
- community_id: data.community_id,
- reason: sanitize_html_opt(&data.reason),
- banned: Some(data.ban),
- expires,
- };
-
- ModBanFromCommunity::create(&mut context.pool(), &form).await?;