mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 06:11:26 +00:00
Revert "filter_removed_comments_from_search"
This reverts commit c6d6490afa
.
This commit is contained in:
parent
c6d6490afa
commit
03414c7526
1 changed files with 1 additions and 3 deletions
|
@ -418,10 +418,8 @@ impl<'a> CommentQuery<'a> {
|
||||||
.list(pool, self)
|
.list(pool, self)
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
//filtering out removed comments from search results
|
|
||||||
.filter(|c| !c.comment.removed)
|
|
||||||
.map(|mut c| {
|
.map(|mut c| {
|
||||||
if c.comment.deleted {
|
if c.comment.deleted || c.comment.removed {
|
||||||
c.comment.content = String::new();
|
c.comment.content = String::new();
|
||||||
}
|
}
|
||||||
c
|
c
|
||||||
|
|
Loading…
Reference in a new issue