Change called method names
- Add GlobalContact::getRandomUrl - Rename Contact::getIdForURL - Rename Diaspora::sendUnshare - Remove unused parameter $self in Contact::terminateFriendship
This commit is contained in:
parent
b92fc24ff0
commit
ec02af593d
48 changed files with 133 additions and 133 deletions
4
boot.php
4
boot.php
|
|
@ -984,10 +984,10 @@ function public_contact()
|
|||
if (!$public_contact_id && x($_SESSION, 'authenticated')) {
|
||||
if (x($_SESSION, 'my_address')) {
|
||||
// Local user
|
||||
$public_contact_id = intval(get_contact($_SESSION['my_address'], 0));
|
||||
$public_contact_id = intval(Contact::getIdForURL($_SESSION['my_address'], 0));
|
||||
} elseif (x($_SESSION, 'visitor_home')) {
|
||||
// Remote user
|
||||
$public_contact_id = intval(get_contact($_SESSION['visitor_home'], 0));
|
||||
$public_contact_id = intval(Contact::getIdForURL($_SESSION['visitor_home'], 0));
|
||||
}
|
||||
} elseif (!x($_SESSION, 'authenticated')) {
|
||||
$public_contact_id = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue