X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=c472da2c07602170e79e886625500dfe62a98c4f;hb=b06fc578804fdc0073631e7c97eccd25543e769e;hp=6e83b76e6fe3024cb139fa7ccb9c6d4123a9f62b;hpb=fa5525d0848af855ff770b206d9ff85911128a5d;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 6e83b76e6f..c472da2c07 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1006,7 +1006,7 @@ class Contact extends BaseObject $sparkle = false; if (($contact['network'] === Protocol::DFRN) && !$contact['self']) { $sparkle = true; - $profile_link = System::baseUrl() . '/redir/' . $contact['id']; + $profile_link = System::baseUrl() . '/redir/' . $contact['id'] . '?url=' . $contact['url']; } else { $profile_link = $contact['url']; } @@ -1016,9 +1016,9 @@ class Contact extends BaseObject } if ($sparkle) { - $status_link = $profile_link . '?url=status'; - $photos_link = $profile_link . '?url=photos'; - $profile_link = $profile_link . '?url=profile'; + $status_link = $profile_link . '?tab=status'; + $photos_link = str_replace('/profile/', '/photos/', $profile_link); + $profile_link = $profile_link . '?tab=profile'; } if (in_array($contact['network'], [Protocol::DFRN, Protocol::DIASPORA]) && !$contact['self']) {