]> Untitled Git - lemmy.git/commitdiff
Remove unnecessary show_deleted_and_removed comments for a profile. (#2458)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 26 Sep 2022 20:02:06 +0000 (16:02 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 20:02:06 +0000 (20:02 +0000)
crates/api_common/src/person.rs
crates/api_crud/src/user/read.rs

index 4b29070ac886825b95572936fe11a90db413d333..8c4131dd64fcfd085c2d10afaaa70203135c5823 100644 (file)
@@ -99,7 +99,6 @@ pub struct GetPersonDetails {
   pub limit: Option<i64>,
   pub community_id: Option<CommunityId>,
   pub saved_only: Option<bool>,
-  pub show_deleted_and_removed: Option<bool>,
   pub auth: Option<Sensitive<String>>,
 }
 
index a22bb85e885b513e59ad94f0e1a998ff4d5eefbf..d60932a1e1771be94f1f7479e6f3ab8ecc588341 100644 (file)
@@ -60,7 +60,6 @@ impl PerformCrud for GetPersonDetails {
     let page = data.page;
     let limit = data.limit;
     let saved_only = data.saved_only;
-    let show_deleted_and_removed = data.show_deleted_and_removed;
     let community_id = data.community_id;
     let local_user = local_user_view.map(|l| l.local_user);
     let local_user_clone = local_user.to_owned();
@@ -94,7 +93,7 @@ impl PerformCrud for GetPersonDetails {
         .local_user(local_user_clone.as_ref())
         .sort(sort.map(post_to_comment_sort_type))
         .saved_only(saved_only)
-        .show_deleted_and_removed(show_deleted_and_removed)
+        .show_deleted_and_removed(Some(false))
         .community_id(community_id)
         .page(page)
         .limit(limit);