mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 01:35:21 +00:00
Addressing PR comments.
This commit is contained in:
parent
9e6a6ed356
commit
da7a672208
|
@ -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)?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue