mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Another notifs fix.
This commit is contained in:
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…
Reference in New Issue
Block a user