From: Dessalines Date: Fri, 9 Oct 2020 18:09:00 +0000 (-0500) Subject: Fixing post community filter. Fixes #1187 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/README.ru.md?a=commitdiff_plain;h=1c8913090d9af17a6fe16d815f300060e8879a78;p=lemmy.git Fixing post community filter. Fixes #1187 --- diff --git a/lemmy_db/src/post_view.rs b/lemmy_db/src/post_view.rs index ed7e4f3f..15652477 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 {