From 6fdab8394a6884d43210c2d260c1d5c1b321064c Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Sat, 3 Oct 2020 23:03:33 -0400
Subject: [PATCH] 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
---
 src/Model/Profile.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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])