diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 0efdb7ae66..e883078f0d 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -271,8 +271,11 @@ class Profile $contact = []; if ($is_contact) { - $contact_id = Contact::getIdForURL($profile['nurl'], local_user()); - $contact = Contact::getById($contact_id); + if (local_user() && ($profile['uid'] ?? '') != local_user()) { + $contact = Contact::getById(Contact::getIdForURL($profile['nurl'], local_user())); + } else { + $contact = $profile; + } } if (empty($profile['nickname'])) {