sforkowany z mirror/friendica
Update wrong assertion regarding a profile being local user's self in Model\Profile
- It was hiding follow links for profiles on the same node2022.09-rc
rodzic
b812065499
commit
6fdab8394a
|
@ -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])
|
||||
|
|
Ładowanie…
Reference in New Issue