From: Hypolite Petovan Date: Sun, 28 Jul 2019 15:23:50 +0000 (-0400) Subject: Replace removed Contact::select method with Contact::selectToArray in Compose module X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b6f231ad35e370cb3e0807c4a118e3c93c8172d;p=friendica.git Replace removed Contact::select method with Contact::selectToArray in Compose module --- diff --git a/src/Module/Item/Compose.php b/src/Module/Item/Compose.php index 37c98b4fe5..09668af230 100644 --- a/src/Module/Item/Compose.php +++ b/src/Module/Item/Compose.php @@ -86,7 +86,7 @@ class Compose extends BaseModule $group_deny = $_REQUEST['group_deny'] ?? implode(',', expand_acl($user['deny_gid'])); $visibility = ($contact_allow . $user['allow_gid'] . $user['deny_cid'] . $user['deny_gid']) ? 'custom' : 'public'; - $acl_contacts = Contact::select(['id', 'name', 'addr', 'micro'], ['uid' => local_user(), 'pending' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]]); + $acl_contacts = Contact::selectToArray(['id', 'name', 'addr', 'micro'], ['uid' => local_user(), 'pending' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]]); array_walk($acl_contacts, function (&$value) { $value['type'] = 'contact'; });