- local_user: (local_user_clone.as_ref()),
- sort: (sort.map(post_to_comment_sort_type)),
- saved_only: (saved_only),
- show_deleted_and_removed: (Some(false)),
- community_id: (community_id),
- page: (page),
- limit: (limit),
- creator_id: (
- // If its saved only, you don't care what creator it was
- // Or, if its not saved, then you only want it for that specific creator
- if !saved_only.unwrap_or(false) {
- Some(person_details_id)
- } else {
- None
- }
- ),
+ local_user: local_user_view.as_ref(),
+ sort: sort.map(post_to_comment_sort_type),
+ saved_only,
+ community_id,
+ is_profile_view: true,
+ page,
+ limit,
+ creator_id,