From 36976acb2f132223c5a0a8fb0e64c45eb7cb54d4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 13 Jan 2021 12:04:00 -0500 Subject: [PATCH] Another notifs fix. --- lemmy_db_views/src/comment_view.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); }