]> git.mxchange.org Git - friendica.git/commitdiff
Replace removed Contact::select method with Contact::selectToArray in Compose module
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 28 Jul 2019 15:23:50 +0000 (11:23 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 30 Jul 2019 00:31:50 +0000 (20:31 -0400)
src/Module/Item/Compose.php

index 37c98b4fe5408f4debe03d608ffa0a098d215a73..09668af2309d1e64357fc2dc82bc1efacf58ef7d 100644 (file)
@@ -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';
                });