diff --git a/crates/apub/src/api/search.rs b/crates/apub/src/api/search.rs index f3cd36faf..a2f2bfd39 100644 --- a/crates/apub/src/api/search.rs +++ b/crates/apub/src/api/search.rs @@ -201,6 +201,12 @@ pub async fn search( } }; + //filtering out removed comments from search results + let comments = comments + .into_iter() + .filter(|c| !c.comment.removed) + .collect(); + // Return the jwt Ok(Json(SearchResponse { type_: search_type,