X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewcontacts.php;h=f199574c69483945f63f4e632c155aa49ba500d2;hb=d9e56e04506cdfc9abd87d84cff4f730708db51d;hp=3a6c48a3b2fab619688999c7e751796785ce2456;hpb=e02b982f778daa7d74c1ca03981f9859a147f407;p=friendica.git diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index 3a6c48a3b2..f199574c69 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -1,4 +1,5 @@ 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']), - 'name' => substr($rr['name'],0,20), - 'username' => $rr['name'], + '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'], 'url' => $url, 'sparkle' => '', - 'itemurl' => $rr['url'], - 'network' => network_to_name($rr['network']), + 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']), + 'network' => network_to_name($rr['network'], $rr['url']), ); }