mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Issue 9229: Show unfollow with known contacts
This commit is contained in:
parent
b9a61e5bfb
commit
bf2ca5fcf9
2 changed files with 3 additions and 3 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 = local_user() && local_user() == ($profile['uid'] ?? 0);
|
||||
$local_user_is_self = $profile['self'] ?? false;
|
||||
$visitor_is_authenticated = (bool)self::getMyURL();
|
||||
$visitor_is_following =
|
||||
in_array($visitor_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue