Clean up comment removed also.

This commit is contained in:
Dessalines 2024-04-29 12:28:47 -04:00
parent 7c2c27f442
commit 34bf2575f8

View file

@ -220,8 +220,7 @@ fn queries<'a>() -> Queries<
query = query.filter( query = query.filter(
comment::content comment::content
.ilike(fuzzy_search(&search_term)) .ilike(fuzzy_search(&search_term))
.and(comment::removed.eq(false)) .and(not(comment::removed.or(comment::deleted))),
.and(comment::deleted.eq(false)),
); );
}; };