mirror of
https://github.com/friendica/friendica
synced 2024-11-14 04:22:55 +00:00
Remove superfluous calls to DI::baseUrl in Contact:photoMenu
This commit is contained in:
parent
6af025246e
commit
386c08aa05
1 changed files with 4 additions and 4 deletions
|
@ -1149,7 +1149,7 @@ class Contact
|
||||||
$sparkle = false;
|
$sparkle = false;
|
||||||
if (($contact['network'] === Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) {
|
if (($contact['network'] === Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) {
|
||||||
$sparkle = true;
|
$sparkle = true;
|
||||||
$profile_link = DI::baseUrl() . '/redir/' . $contact['id'];
|
$profile_link = 'redir/' . $contact['id'];
|
||||||
} else {
|
} else {
|
||||||
$profile_link = $contact['url'];
|
$profile_link = $contact['url'];
|
||||||
}
|
}
|
||||||
|
@ -1165,12 +1165,12 @@ class Contact
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::canReceivePrivateMessages($contact) && empty($contact['pending'])) {
|
if (self::canReceivePrivateMessages($contact) && empty($contact['pending'])) {
|
||||||
$pm_url = DI::baseUrl() . '/message/new/' . $contact['id'];
|
$pm_url = 'message/new/' . $contact['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$contact_url = DI::baseUrl() . '/contact/' . $contact['id'];
|
$contact_url = 'contact/' . $contact['id'];
|
||||||
|
|
||||||
$posts_link = DI::baseUrl() . '/contact/' . $contact['id'] . '/conversations';
|
$posts_link = 'contact/' . $contact['id'] . '/conversations';
|
||||||
|
|
||||||
$follow_link = '';
|
$follow_link = '';
|
||||||
$unfollow_link = '';
|
$unfollow_link = '';
|
||||||
|
|
Loading…
Reference in a new issue