]> git.mxchange.org Git - friendica.git/blobdiff - mod/nogroup.php
Merge pull request #2739 from annando/1608-session-close
[friendica.git] / mod / nogroup.php
index 818b0da77abbb59ad20a07eac225624ef35f6558..2f0985c9dbba0db74ae2be74bfc4d31a110c0f6d 100644 (file)
@@ -4,7 +4,6 @@ require_once('include/Contact.php');
 require_once('include/socgraph.php');
 require_once('include/contact_selectors.php');
 
-if(! function_exists('nogroup_init')) {
 function nogroup_init(&$a) {
 
        if(! local_user())
@@ -18,9 +17,8 @@ function nogroup_init(&$a) {
 
        $a->page['aside'] .= group_side('contacts','group','extended',0,$contact_id);
 }
-}
 
-if(! function_exists('nogroup_content')) {
+
 function nogroup_content(&$a) {
 
        if(! local_user()) {
@@ -37,18 +35,18 @@ function nogroup_content(&$a) {
        if(count($r)) {
                foreach($r as $rr) {
 
-                       $contact_details = get_contact_details_by_url($rr['url'], local_user());
+                       $contact_details = get_contact_details_by_url($rr['url'], local_user(), $rr);
 
                        $contacts[] = array(
-                               'img_hover' => sprintf( t('Visit %s\'s profile [%s]'),$rr['name'],$rr['url']),
+                               'img_hover' => sprintf(t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
                                'edit_hover' => t('Edit contact'),
                                'photo_menu' => contact_photo_menu($rr),
                                'id' => $rr['id'],
                                'alt_text' => $alt_text,
                                'dir_icon' => $dir_icon,
-                               'thumb' => $rr['thumb'],
-                               'name' => $rr['name'],
-                               'username' => $rr['name'],
+                               'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
+                               'name' => $contact_details['name'],
+                               'username' => $contact_details['name'],
                                'details'       => $contact_details['location'],
                                'tags'          => $contact_details['keywords'],
                                'about'         => $contact_details['about'],
@@ -68,5 +66,5 @@ function nogroup_content(&$a) {
        ));
 
        return $o;
-}
+
 }