From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Sun, 4 Oct 2020 03:03:33 +0000 (-0400)
Subject: Update wrong assertion regarding a profile being local user's self in Model\Profile
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fdab8394a6884d43210c2d260c1d5c1b321064c;p=friendica.git

Update wrong assertion regarding a profile being local user's self in Model\Profile

- It was hiding follow links for profiles on the same node
---

diff --git a/src/Model/Profile.php b/src/Model/Profile.php
index a5ea6c4cb6..4d44a56a04 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])