Another notifs fix.

pull/1349/head
Dessalines 4 years ago
parent 4677d3d782
commit 36976acb2f

@ -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));
}

Loading…
Cancel
Save