Replace removed Contact::select method with Contact::selectToArray in Compose module
This commit is contained in:
parent
f010beaa95
commit
0b6f231ad3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class Compose extends BaseModule
|
||||||
$group_deny = $_REQUEST['group_deny'] ?? implode(',', expand_acl($user['deny_gid']));
|
$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';
|
$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) {
|
array_walk($acl_contacts, function (&$value) {
|
||||||
$value['type'] = 'contact';
|
$value['type'] = 'contact';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue