From: Dessalines Date: Mon, 26 Sep 2022 20:02:06 +0000 (-0400) Subject: Remove unnecessary show_deleted_and_removed comments for a profile. (#2458) X-Git-Url: http://these/git/%7B%60%24%7BrepoUrl%7D/blob/master/docs/static/%7BrepoUrl%7D?a=commitdiff_plain;h=3c5368d8b1df7dbb922547bfa723968e5eeab4eb;p=lemmy.git Remove unnecessary show_deleted_and_removed comments for a profile. (#2458) --- diff --git a/crates/api_common/src/person.rs b/crates/api_common/src/person.rs index 4b29070a..8c4131dd 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 a22bb85e..d60932a1 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);