From 03414c7526d11e092f5f7eebbd60ddc96e1f1e7d Mon Sep 17 00:00:00 2001 From: tracyspacy Date: Tue, 16 Apr 2024 18:14:15 +0200 Subject: [PATCH] Revert "filter_removed_comments_from_search" This reverts commit c6d6490afa923a666b96c785a776711ef42baed7. --- crates/db_views/src/comment_view.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 40997eb9a..e8957e1e9 100644 --- a/crates/db_views/src/comment_view.rs +++ b/crates/db_views/src/comment_view.rs @@ -418,10 +418,8 @@ impl<'a> CommentQuery<'a> { .list(pool, self) .await? .into_iter() - //filtering out removed comments from search results - .filter(|c| !c.comment.removed) .map(|mut c| { - if c.comment.deleted { + if c.comment.deleted || c.comment.removed { c.comment.content = String::new(); } c