X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Fbuild_response.rs;h=e0d3997646bb3ee1f5d9a8fa5563a904a0c649d2;hb=c8063f3267cf2b3622f1fdc69128c6b55feefbbc;hp=3140cd72225c572d1105702d8d973941a3da6ba7;hpb=9b710a2ed3df7411f97e873ae445e96fa5a8bd56;p=lemmy.git diff --git a/crates/api_common/src/build_response.rs b/crates/api_common/src/build_response.rs index 3140cd72..e0d39976 100644 --- a/crates/api_common/src/build_response.rs +++ b/crates/api_common/src/build_response.rs @@ -50,7 +50,7 @@ pub async fn build_community_response( &mut context.pool(), community_id, Some(person_id), - Some(is_mod_or_admin), + is_mod_or_admin, ) .await?; let discussion_languages = CommunityLanguage::read(&mut context.pool(), community_id).await?; @@ -74,7 +74,7 @@ pub async fn build_post_response( &mut context.pool(), post_id, Some(person_id), - Some(is_mod_or_admin), + is_mod_or_admin, ) .await?; Ok(Json(PostResponse { post_view }))