Fiddling with the unknown contact array values
This commit is contained in:
parent
6b8ad57399
commit
96b1a00e91
|
@ -635,18 +635,18 @@ function acl_lookup(App $a, $out_type = 'json') {
|
||||||
);
|
);
|
||||||
if (dbm::is_result($r)) {
|
if (dbm::is_result($r)) {
|
||||||
foreach ($r as $row) {
|
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) {
|
if (count($contact) > 0) {
|
||||||
$unknown_contacts[] = array(
|
$unknown_contacts[] = array(
|
||||||
'type' => 'cu',
|
'type' => 'cu',
|
||||||
'photo' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO),
|
'photo' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO),
|
||||||
'name' => htmlentities($contact['name']),
|
'name' => htmlentities($contact['name']),
|
||||||
'id' => intval($contact['id']),
|
'id' => intval($contact['cid']),
|
||||||
'network' => $contact['network'],
|
'network' => $contact['network'],
|
||||||
'link' => $contact['url'],
|
'link' => $contact['url'],
|
||||||
'nick' => $contact['nick'],
|
'nick' => $contact['nick'] ? : $contact['addr'],
|
||||||
'forum' => false
|
'forum' => $contact['forum']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue