- let page = data.page;
- let limit = data.limit;
- let community_id = if let Some(name) = &data.community_name {
- resolve_actor_identifier::<ApubCommunity, Community>(name, context, &None, true)
- .await
- .ok()
- .map(|c| c.id)
- } else {
- data.community_id
- };
- let saved_only = data.saved_only;
-
- let listing_type = listing_type_with_default(data.type_, &local_site, community_id)?;
+ let liked_only = data.liked_only.unwrap_or_default();
+ let disliked_only = data.disliked_only.unwrap_or_default();
+ if liked_only && disliked_only {
+ return Err(LemmyError::from(LemmyErrorType::ContradictingFilters));
+ }