Fixing post community filter. Fixes #1187

pull/1189/head
Dessalines 2020-10-09 13:09:00 -05:00
parent e61c3f0de3
commit 1c8913090d
1 changed files with 1 additions and 3 deletions

View File

@ -289,9 +289,7 @@ impl<'a> PostQueryBuilder<'a> {
if let Some(search_term) = self.search_term { if let Some(search_term) = self.search_term {
let searcher = fuzzy_search(&search_term); let searcher = fuzzy_search(&search_term);
query = query query = query.filter(name.ilike(searcher.to_owned()).or(body.ilike(searcher)));
.filter(name.ilike(searcher.to_owned()))
.or_filter(body.ilike(searcher));
} }
query = match self.sort { query = match self.sort {