mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Merge pull request #1189 from LemmyNet/fix_search_filter
Fixing post community filter. Fixes #1187
This commit is contained in:
commit
f44612970a
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue