]> git.mxchange.org Git - friendica.git/blobdiff - mod/directory.php
Bugfix - use magicLinks also for common/all friends and the directory
[friendica.git] / mod / directory.php
index 3fd0aa848bec837401e1132f14e41f1d567572d6..fa5ce73d4ca1d14ab2c87f62487a14aa3ccbd9b7 100644 (file)
@@ -116,7 +116,7 @@ function directory_content(App $a)
 
                        $itemurl = (($rr['addr'] != "") ? $rr['addr'] : $rr['profile_url']);
 
-                       $profile_link = 'profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']);
+                       $profile_link = $rr['profile_url'];
 
                        $pdesc = (($rr['pdesc']) ? $rr['pdesc'] . '<br />' : '');
 
@@ -169,7 +169,7 @@ function directory_content(App $a)
 
                        $entry = [
                                'id'           => $rr['id'],
-                               'url'          => $profile_link,
+                               'url'          => Contact::magicLInk($profile_link),
                                'itemurl'      => $itemurl,
                                'thumb'        => ProxyUtils::proxifyUrl($rr[$photo], false, ProxyUtils::SIZE_THUMB),
                                'img_hover'    => $rr['name'],