From 34bf2575f8fb8a72d3080a6a8d4936a9f172f77f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 29 Apr 2024 12:28:47 -0400 Subject: [PATCH] Clean up comment removed also. --- crates/db_views/src/comment_view.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 910c37406..ec4faf0e7 100644 --- a/crates/db_views/src/comment_view.rs +++ b/crates/db_views/src/comment_view.rs @@ -220,8 +220,7 @@ fn queries<'a>() -> Queries< query = query.filter( comment::content .ilike(fuzzy_search(&search_term)) - .and(comment::removed.eq(false)) - .and(comment::deleted.eq(false)), + .and(not(comment::removed.or(comment::deleted))), ); };