Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact

This commit is contained in:
Michael 2019-12-16 06:35:29 +00:00
parent b096172cdc
commit c4e381fbd7

View file

@ -1230,7 +1230,7 @@ class Contact extends BaseObject
$follow_link = '';
$unfollow_link = '';
if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
if (!$contact['self'] && in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
if ($contact['uid'] && in_array($contact['rel'], [self::SHARING, self::FRIEND])) {
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']);
} elseif(!$contact['pending']) {