]> Untitled Git - lemmy.git/blobdiff - crates/api/src/community/transfer.rs
Adding diesel enums for SortType and ListingType (#2808)
[lemmy.git] / crates / api / src / community / transfer.rs
index e46ed351863617c070b8a500434966107d875a91..a34dfb40d56f3064cc8e2ea96a4243fcfdf4402d 100644 (file)
@@ -76,14 +76,13 @@ impl Perform for TransferCommunity {
       mod_person_id: local_user_view.person.id,
       other_person_id: data.person_id,
       community_id: data.community_id,
-      removed: Some(false),
     };
 
     ModTransferCommunity::create(context.pool(), &form).await?;
 
     let community_id = data.community_id;
     let person_id = local_user_view.person.id;
-    let community_view = CommunityView::read(context.pool(), community_id, Some(person_id))
+    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"))?;