From 1c8913090d9af17a6fe16d815f300060e8879a78 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 9 Oct 2020 13:09:00 -0500 Subject: [PATCH] Fixing post community filter. Fixes #1187 --- lemmy_db/src/post_view.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lemmy_db/src/post_view.rs b/lemmy_db/src/post_view.rs index ed7e4f3fa..15652477e 100644 --- a/lemmy_db/src/post_view.rs +++ b/lemmy_db/src/post_view.rs @@ -289,9 +289,7 @@ impl<'a> PostQueryBuilder<'a> { if let Some(search_term) = self.search_term { let searcher = fuzzy_search(&search_term); - query = query - .filter(name.ilike(searcher.to_owned())) - .or_filter(body.ilike(searcher)); + query = query.filter(name.ilike(searcher.to_owned()).or(body.ilike(searcher))); } query = match self.sort {