mirror of
https://github.com/friendica/friendica
synced 2025-04-19 11:10:10 +00:00
Changed parameter order for "getbyURLForUser"
This commit is contained in:
parent
fc0312451d
commit
e374aecc46
11 changed files with 14 additions and 14 deletions
|
@ -79,7 +79,7 @@ class AllFriends extends BaseModule
|
|||
$entries = [];
|
||||
foreach ($friends as $friend) {
|
||||
//get further details of the contact
|
||||
$contactDetails = array_merge($friend, Model\Contact::getByURLForUser($friend['url'], $uid, [], false));
|
||||
$contactDetails = array_merge($friend, Model\Contact::getByURLForUser($friend['url'], $uid, false));
|
||||
|
||||
$connlnk = '';
|
||||
// $friend[cid] is only available for common contacts. So if the contact is a common one, use contact_photo_menu to generate the photoMenu
|
||||
|
|
|
@ -65,7 +65,7 @@ class Hovercard extends BaseModule
|
|||
// Search for contact data
|
||||
// Look if the local user has got the contact
|
||||
if (Session::isAuthenticated()) {
|
||||
$contact = Contact::getByURLForUser($contact_url, local_user(), [], false);
|
||||
$contact = Contact::getByURLForUser($contact_url, local_user(), false);
|
||||
} else {
|
||||
$contact = Contact::getByURL($contact_url, false);
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ class Contacts extends BaseProfile
|
|||
continue;
|
||||
}
|
||||
|
||||
$contact_details = array_merge($contact, Contact::getByURLForUser($contact['url'], $a->profile['uid'], [], false));
|
||||
$contact_details = array_merge($contact, Contact::getByURLForUser($contact['url'], $a->profile['uid'], false));
|
||||
|
||||
$contacts[] = [
|
||||
'id' => $contact['id'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue