From 3c5368d8b1df7dbb922547bfa723968e5eeab4eb Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 26 Sep 2022 16:02:06 -0400 Subject: [PATCH] Remove unnecessary show_deleted_and_removed comments for a profile. (#2458) --- crates/api_common/src/person.rs | 1 - crates/api_crud/src/user/read.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/api_common/src/person.rs b/crates/api_common/src/person.rs index 4b29070ac..8c4131dd6 100644 --- a/crates/api_common/src/person.rs +++ b/crates/api_common/src/person.rs @@ -99,7 +99,6 @@ pub struct GetPersonDetails { pub limit: Option, pub community_id: Option, pub saved_only: Option, - pub show_deleted_and_removed: Option, pub auth: Option>, } diff --git a/crates/api_crud/src/user/read.rs b/crates/api_crud/src/user/read.rs index a22bb85e8..d60932a1e 100644 --- a/crates/api_crud/src/user/read.rs +++ b/crates/api_crud/src/user/read.rs @@ -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);