filter_deleted_comments

This commit is contained in:
tracyspacy 2024-04-17 15:49:54 +02:00
parent 6e9b1de7a2
commit 7dc1d13d24

View file

@ -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 let comments = comments
.into_iter() .into_iter()
.filter(|c| !c.comment.removed) .filter(|c| !c.comment.removed && !c.comment.deleted)
.collect(); .collect();
// Return the jwt // Return the jwt