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
This commit is contained in:
Hypolite Petovan 2020-10-03 23:03:33 -04:00
parent b812065499
commit 6fdab8394a
1 changed files with 1 additions and 1 deletions

View 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 = $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])