From 8d7846142ddb2f500a615e5f68cd68cbae5a0702 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 13 Oct 2021 21:04:46 +0000 Subject: [PATCH] Hide blocked contacts when searching public contacts --- src/Model/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 236c0b9b99..f095543ebd 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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;