Bug fix: last commit results in logged-in user's contacts being displayed on contact profile sidebar.
This commit is contained in:
parent
93926e99b8
commit
97a9ec4e40
1 changed files with 3 additions and 2 deletions
|
@ -169,12 +169,13 @@ class Profile
|
||||||
if (empty($user['uid'])) {
|
if (empty($user['uid'])) {
|
||||||
$profile = [];
|
$profile = [];
|
||||||
} else {
|
} else {
|
||||||
|
$contact_id = Contact::getIdForURL(Strings::normaliseLink(DI::baseurl() . '/profile/' . $nickname), local_user());
|
||||||
$profile = array_merge(
|
$profile = array_merge(
|
||||||
$user,
|
$user,
|
||||||
|
Contact::getById($contact_id),
|
||||||
Profile::getByUID($user['uid']),
|
Profile::getByUID($user['uid']),
|
||||||
Contact::getById(Contact::getIdForURL(Strings::normaliseLink(DI::baseurl() . '/profile/' . $nickname), local_user()))
|
|
||||||
);
|
);
|
||||||
$profile['cid'] = $profile['id'];
|
$profile['cid'] = $contact_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($profile) && empty($profiledata)) {
|
if (empty($profile) && empty($profiledata)) {
|
||||||
|
|
Loading…
Reference in a new issue