Merge pull request #7957 from annando/issue-7953
Issue 7953: Don't show follow on the hovercard for the "self" contact
This commit is contained in:
commit
1345c9e191
|
@ -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']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user