From: Hypolite Petovan Date: Thu, 13 Apr 2017 01:32:06 +0000 (-0400) Subject: Fiddling with the unknown contact array values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96b1a00e91e204515e632bc9e8d29c46aedddcbf;p=friendica.git Fiddling with the unknown contact array values --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 0e30ee06e8..4cc810fb5c 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -635,18 +635,18 @@ function acl_lookup(App $a, $out_type = 'json') { ); if (dbm::is_result($r)) { foreach ($r as $row) { - $contact = get_contact_details_by_url($row['author-link'], 0); + $contact = get_contact_details_by_url($row['author-link']); if (count($contact) > 0) { $unknown_contacts[] = array( 'type' => 'cu', 'photo' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO), 'name' => htmlentities($contact['name']), - 'id' => intval($contact['id']), + 'id' => intval($contact['cid']), 'network' => $contact['network'], 'link' => $contact['url'], - 'nick' => $contact['nick'], - 'forum' => false + 'nick' => $contact['nick'] ? : $contact['addr'], + 'forum' => $contact['forum'] ); } }