]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewcontacts.php
template rework: rearrange sidebar widgets for contact related pages
[friendica.git] / mod / viewcontacts.php
index 3a6c48a3b2fab619688999c7e751796785ce2456..927a597524adaa7b17565aea86e629e75b4a1128 100644 (file)
@@ -48,7 +48,7 @@ function viewcontacts_content(&$a) {
                if($rr['self'])
                        continue;
 
-           $url = $rr['url'];
+               $url = $rr['url'];
 
                // route DFRN profiles through the redirect
 
@@ -62,13 +62,13 @@ function viewcontacts_content(&$a) {
                $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']),
                        'url' => $url,
                        'sparkle' => '',
                        'itemurl' => $rr['url'],
-                       'network' => network_to_name($rr['network']),
+                       'network' => network_to_name($rr['network'], $rr['url']),
                );
        }