mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
fixing links in photoMenu
This commit is contained in:
parent
c62a3700ea
commit
bd7aaacfb0
2 changed files with 8 additions and 8 deletions
|
@ -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']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue