mirror of
https://github.com/friendica/friendica
synced 2025-04-30 19:04:23 +02:00
Update function calls
update function calls to use profile class
This commit is contained in:
parent
4cfa46186a
commit
4fb2547df8
45 changed files with 360 additions and 294 deletions
|
@ -223,13 +223,13 @@ function common_friends_visitor_widget($profile_uid)
|
|||
}
|
||||
|
||||
if (!$cid) {
|
||||
if (get_my_url()) {
|
||||
if (Profile::getMyURL()) {
|
||||
$contact = dba::selectFirst('contact', ['id'],
|
||||
['nurl' => normalise_link(get_my_url()), 'uid' => $profile_uid]);
|
||||
['nurl' => normalise_link(Profile::getMyURL()), 'uid' => $profile_uid]);
|
||||
if (DBM::is_result($contact)) {
|
||||
$cid = $contact['id'];
|
||||
} else {
|
||||
$gcontact = dba::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(get_my_url())]);
|
||||
$gcontact = dba::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(Profile::getMyURL())]);
|
||||
if (DBM::is_result($gcontact)) {
|
||||
$zcid = $gcontact['id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue