mirror of
https://github.com/friendica/friendica
synced 2024-11-19 23:03:41 +00:00
Hide blocked contacts when searching public contacts
This commit is contained in:
parent
2904f4ca0e
commit
8d7846142d
1 changed files with 4 additions and 0 deletions
|
@ -3024,6 +3024,10 @@ class Contact
|
|||
|
||||
$condition = ['network' => $networks, 'failed' => false, 'deleted' => false, 'uid' => $uid];
|
||||
|
||||
if ($uid == 0) {
|
||||
$condition['blocked'] = false;
|
||||
}
|
||||
|
||||
// check if we search only communities or every contact
|
||||
if ($mode === 'community') {
|
||||
$condition['contact-type'] = self::TYPE_COMMUNITY;
|
||||
|
|
Loading…
Reference in a new issue