Merge pull request #9357 from MrPetovan/bug/9315-follow-link-local-profiles
Update wrong assertion regarding a profile being local user's self in Model\Profile
This commit is contained in:
commit
6708552b5b
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class Profile
|
||||||
|
|
||||||
$profile_is_dfrn = $profile['network'] == Protocol::DFRN;
|
$profile_is_dfrn = $profile['network'] == Protocol::DFRN;
|
||||||
$profile_is_native = in_array($profile['network'], Protocol::NATIVE_SUPPORT);
|
$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_authenticated = (bool)self::getMyURL();
|
||||||
$visitor_is_following =
|
$visitor_is_following =
|
||||||
in_array($visitor_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND])
|
in_array($visitor_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND])
|
||||||
|
|
Loading…
Reference in a new issue