mirror of https://github.com/LemmyNet/lemmy.git
Remove unnecessary show_deleted_and_removed comments for a profile. (#2458)
parent
2dca80d678
commit
3c5368d8b1
|
@ -99,7 +99,6 @@ pub struct GetPersonDetails {
|
||||||
pub limit: Option<i64>,
|
pub limit: Option<i64>,
|
||||||
pub community_id: Option<CommunityId>,
|
pub community_id: Option<CommunityId>,
|
||||||
pub saved_only: Option<bool>,
|
pub saved_only: Option<bool>,
|
||||||
pub show_deleted_and_removed: Option<bool>,
|
|
||||||
pub auth: Option<Sensitive<String>>,
|
pub auth: Option<Sensitive<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ impl PerformCrud for GetPersonDetails {
|
||||||
let page = data.page;
|
let page = data.page;
|
||||||
let limit = data.limit;
|
let limit = data.limit;
|
||||||
let saved_only = data.saved_only;
|
let saved_only = data.saved_only;
|
||||||
let show_deleted_and_removed = data.show_deleted_and_removed;
|
|
||||||
let community_id = data.community_id;
|
let community_id = data.community_id;
|
||||||
let local_user = local_user_view.map(|l| l.local_user);
|
let local_user = local_user_view.map(|l| l.local_user);
|
||||||
let local_user_clone = local_user.to_owned();
|
let local_user_clone = local_user.to_owned();
|
||||||
|
@ -94,7 +93,7 @@ impl PerformCrud for GetPersonDetails {
|
||||||
.local_user(local_user_clone.as_ref())
|
.local_user(local_user_clone.as_ref())
|
||||||
.sort(sort.map(post_to_comment_sort_type))
|
.sort(sort.map(post_to_comment_sort_type))
|
||||||
.saved_only(saved_only)
|
.saved_only(saved_only)
|
||||||
.show_deleted_and_removed(show_deleted_and_removed)
|
.show_deleted_and_removed(Some(false))
|
||||||
.community_id(community_id)
|
.community_id(community_id)
|
||||||
.page(page)
|
.page(page)
|
||||||
.limit(limit);
|
.limit(limit);
|
||||||
|
|
Loading…
Reference in New Issue