X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewcontacts.php;h=c7f139e1e48aa9732773db0c98f586928a6c789d;hb=1c640902177afad3dfe3d38db723414ff47a8a01;hp=a6bf74b2885df20042a8de26186029a12db00917;hpb=26983bafff024adab0339b828ec21d83fc5d1007;p=friendica.git diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index a6bf74b288..c7f139e1e4 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -1,4 +1,5 @@ profile['uid']) ); if(count($r)) @@ -48,7 +48,7 @@ function viewcontacts_content(&$a) { if($rr['self']) continue; - $url = $rr['url']; + $url = $rr['url']; // route DFRN profiles through the redirect @@ -59,15 +59,21 @@ function viewcontacts_content(&$a) { else $url = zrl($url); + $contact_details = get_contact_details_by_url($rr['url'], $a->profile['uid']); + $contacts[] = array( 'id' => $rr['id'], 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['name'], $rr['url']), 'thumb' => proxy_url($rr['thumb'], false, PROXY_SIZE_THUMB), 'name' => htmlentities(substr($rr['name'],0,20)), 'username' => htmlentities($rr['name']), + 'details' => $contact_details['location'], + 'tags' => $contact_details['keywords'], + 'about' => $contact_details['about'], + 'account_type' => (($contact_details['community']) ? t('Forum') : ''), 'url' => $url, 'sparkle' => '', - 'itemurl' => $rr['url'], + 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']), 'network' => network_to_name($rr['network'], $rr['url']), ); }