- let community_view = CommunityView::read(context.pool(), community_id, Some(person_id), None)
- .await
- .map_err(|e| LemmyError::from_error_message(e, "couldnt_find_community"))?;
+ let community_view =
+ CommunityView::read(&mut context.pool(), community_id, Some(person_id), false)
+ .await
+ .with_lemmy_type(LemmyErrorType::CouldntFindCommunity)?;