diff --git a/src/Model/Profile.php b/src/Model/Profile.php index a5ea6c4cb..4d44a56a0 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -304,7 +304,7 @@ class Profile $profile_is_dfrn = $profile['network'] == Protocol::DFRN; $profile_is_native = in_array($profile['network'], Protocol::NATIVE_SUPPORT); - $local_user_is_self = $profile['self'] ?? false; + $local_user_is_self = self::getMyURL() && ($profile['url'] == self::getMyURL()); $visitor_is_authenticated = (bool)self::getMyURL(); $visitor_is_following = in_array($visitor_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND])