X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewcontacts.php;h=af5ecd9d67011b5daaeace861600026cd7cd3975;hb=c829e4372561660a1b7f365e3210cc7d49124642;hp=b45980fec3f6dea1eb68b029269c296af819d15a;hpb=208a149a7b7e25dc84c39e5631cba11d41869bae;p=friendica.git diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index b45980fec3..af5ecd9d67 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -46,6 +46,8 @@ function viewcontacts_content(App $a) return; } + $is_owner = $a->profile['profile_uid'] == local_user(); + $o = ""; // tabs @@ -94,18 +96,6 @@ function viewcontacts_content(App $a) continue; } - $url = $rr['url']; - - // route DFRN profiles through the redirect - - $is_owner = ((local_user() && ($a->profile['profile_uid'] == local_user())) ? true : false); - - if ($is_owner && ($rr['network'] === NETWORK_DFRN) && ($rr['rel'])) { - $url = 'redir/' . $rr['id']; - } else { - $url = Profile::zrl($url); - } - $contact_details = Contact::getDetailsByURL($rr['url'], $a->profile['uid'], $rr); $contacts[] = [ @@ -119,7 +109,7 @@ function viewcontacts_content(App $a) 'tags' => $contact_details['keywords'], 'about' => $contact_details['about'], 'account_type' => Contact::getAccountType($contact_details), - 'url' => $url, + 'url' => Contact::magicLink($rr['url']), 'sparkle' => '', 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']), 'network' => ContactSelector::networkToName($rr['network'], $rr['url']),