]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Merge pull request #9374 from annando/issue-9358-b
[friendica.git] / src / Model / Profile.php
index 0ed393022b3f7ea108c6ca40d03fcfe1949990a0..4d44a56a04c5286bb941ba9dcb6da13665679d63 100644 (file)
@@ -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 = local_user() && local_user() == ($profile['uid'] ?? 0);
+               $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])