- let community_view = blocking(context.pool(), move |conn| {
- CommunityView::read(conn, community_id, Some(person_id))
- })
- .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)?;