mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-30 17:20:02 +00:00
filter_deleted_comments
This commit is contained in:
parent
6e9b1de7a2
commit
7dc1d13d24
1 changed files with 2 additions and 2 deletions
|
@ -201,10 +201,10 @@ pub async fn search(
|
|||
}
|
||||
};
|
||||
|
||||
//filtering out removed comments from search results
|
||||
//filtering out removed and deleted comments from search results
|
||||
let comments = comments
|
||||
.into_iter()
|
||||
.filter(|c| !c.comment.removed)
|
||||
.filter(|c| !c.comment.removed && !c.comment.deleted)
|
||||
.collect();
|
||||
|
||||
// Return the jwt
|
||||
|
|
Loading…
Reference in a new issue