From: Dessalines Date: Wed, 13 Jan 2021 17:04:00 +0000 (-0500) Subject: Another notifs fix. X-Git-Url: http://these/git/ui/assets/%7B%27/docs/static/git-logo.png?a=commitdiff_plain;h=36976acb2f132223c5a0a8fb0e64c45eb7cb54d4;p=lemmy.git Another notifs fix. --- diff --git a/lemmy_db_views/src/comment_view.rs b/lemmy_db_views/src/comment_view.rs index a40b3263..3ee3e938 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)); }