mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Don't filter comments of posts from blocked community when viewing post detail (#2880)
This commit is contained in:
parent
4240af86ca
commit
d30839bea1
@ -312,7 +312,9 @@ impl<'a> CommentQuery<'a> {
|
|||||||
query = query.filter(local_user_language::language_id.is_not_null());
|
query = query.filter(local_user_language::language_id.is_not_null());
|
||||||
|
|
||||||
// Don't show blocked communities or persons
|
// Don't show blocked communities or persons
|
||||||
query = query.filter(community_block::person_id.is_null());
|
if self.post_id.is_none() {
|
||||||
|
query = query.filter(community_block::person_id.is_null());
|
||||||
|
}
|
||||||
query = query.filter(person_block::person_id.is_null());
|
query = query.filter(person_block::person_id.is_null());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user