diff --git a/lemmy_db_views/src/comment_view.rs b/lemmy_db_views/src/comment_view.rs index a40b32635..3ee3e9384 100644 --- a/lemmy_db_views/src/comment_view.rs +++ b/lemmy_db_views/src/comment_view.rs @@ -322,7 +322,11 @@ impl<'a> CommentQueryBuilder<'a> { query = query // TODO needs lots of testing .filter(user_alias_1::id.eq(recipient_id)) // Gets the comment replies - .or_filter(comment::parent_id.is_null().and(post::creator_id.eq(recipient_id))) // Gets the top level replies + .or_filter( + comment::parent_id + .is_null() + .and(post::creator_id.eq(recipient_id)), + ) // Gets the top level replies .filter(comment::deleted.eq(false)) .filter(comment::removed.eq(false)); }