Don't filter comments of posts from blocked community when viewing post detail (#2880)
This commit is contained in:
parent
4240af86ca
commit
d30839bea1
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue