- if (!empty($profile['nurl'])) {
- if (local_user() && ($profile['uid'] ?? 0) != local_user()) {
- $profile_contact = Contact::getByURL($profile['nurl'], null, ['rel'], local_user());
- }
- if (!empty($profile['cid']) && self::getMyURL()) {
- $profile_contact = Contact::selectFirst(['rel'], ['id' => $profile['cid']]);
- }
+ if (local_user() && ($profile['uid'] ?? 0) != local_user()) {
+ $profile_contact = Contact::getByURL($profile['nurl'], null, [], local_user());