mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
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:
parent
b812065499
commit
6fdab8394a
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue