]> Untitled Git - lemmy.git/commitdiff
Another notifs fix.
authorDessalines <tyhou13@gmx.com>
Wed, 13 Jan 2021 17:04:00 +0000 (12:04 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 13 Jan 2021 17:04:00 +0000 (12:04 -0500)
lemmy_db_views/src/comment_view.rs

index a40b3263501e0dfb7a199fc548c0c1ebc5dd5ee8..3ee3e938417180f23f4e60555092a5deef9e6da7 100644 (file)
@@ -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));
     }