mirror of https://github.com/LemmyNet/lemmy.git
Don't filter comments of posts from blocked community when viewing post detail (#2880)
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
|
||||||
|
if self.post_id.is_none() {
|
||||||
query = query.filter(community_block::person_id.is_null());
|
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