Replace profile tab GET parameter by route

This commit is contained in:
Hypolite Petovan 2020-01-27 19:21:18 -05:00
parent 74a25eb670
commit a607656607
9 changed files with 10 additions and 30 deletions

View file

@ -1230,9 +1230,9 @@ class Contact
}
if ($sparkle) {
$status_link = $profile_link . '?tab=status';
$status_link = $profile_link . '/status';
$photos_link = str_replace('/profile/', '/photos/', $profile_link);
$profile_link = $profile_link . '?tab=profile';
$profile_link = $profile_link . '/profile';
}
if (self::canReceivePrivateMessages($contact) && empty($contact['pending'])) {