From da7a672208a2444bb8c1387653db43c73e6b28ed Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 18 Oct 2023 12:36:38 -0400 Subject: [PATCH] Addressing PR comments. --- crates/api/src/post/mark_read.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/api/src/post/mark_read.rs b/crates/api/src/post/mark_read.rs index 4df7735de..a46e949fa 100644 --- a/crates/api/src/post/mark_read.rs +++ b/crates/api/src/post/mark_read.rs @@ -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)?; }