From 0b6f231ad35e370cb3e0807c4a118e3c93c8172d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 28 Jul 2019 11:23:50 -0400 Subject: [PATCH] Replace removed Contact::select method with Contact::selectToArray in Compose module --- src/Module/Item/Compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Item/Compose.php b/src/Module/Item/Compose.php index 37c98b4fe..09668af23 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'; });