X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Fbuild_response.rs;h=e0d3997646bb3ee1f5d9a8fa5563a904a0c649d2;hb=c8063f3267cf2b3622f1fdc69128c6b55feefbbc;hp=8d3bcda1ae9c296fa6f2d725452b80ca43621a2f;hpb=27be1efb74d6761046999980561a343d06235674;p=lemmy.git diff --git a/crates/api_common/src/build_response.rs b/crates/api_common/src/build_response.rs index 8d3bcda1..e0d39976 100644 --- a/crates/api_common/src/build_response.rs +++ b/crates/api_common/src/build_response.rs @@ -26,7 +26,6 @@ pub async fn build_comment_response( context: &LemmyContext, comment_id: CommentId, local_user_view: Option, - form_id: Option, recipient_ids: Vec, ) -> Result { let person_id = local_user_view.map(|l| l.person.id); @@ -34,7 +33,6 @@ pub async fn build_comment_response( Ok(CommentResponse { comment_view, recipient_ids, - form_id, }) } @@ -52,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?; @@ -76,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 }))