Addressing PR comments.

This commit is contained in:
Dessalines 2023-10-18 12:36:38 -04:00
parent 9e6a6ed356
commit da7a672208

View file

@ -20,10 +20,6 @@ pub async fn mark_post_as_read(
post_ids.insert(post_id);
}
if post_ids.is_empty() {
Err(LemmyErrorType::CouldntMarkPostAsRead)?;
}
if post_ids.len() > MAX_API_PARAM_ELEMENTS {
Err(LemmyErrorType::TooManyItems)?;
}