Another notifs fix.

This commit is contained in:
Dessalines 2021-01-13 12:04:00 -05:00
parent 4677d3d782
commit 36976acb2f

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