Addressing PR comments.

mark_unread_post_id_opt
Dessalines 2023-10-18 12:36:38 -04:00
parent 9e6a6ed356
commit da7a672208
1 changed files with 0 additions and 4 deletions

View File

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