Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact
This commit is contained in:
parent
b096172cdc
commit
c4e381fbd7
1 changed files with 1 additions and 1 deletions
|
@ -1230,7 +1230,7 @@ class Contact extends BaseObject
|
||||||
|
|
||||||
$follow_link = '';
|
$follow_link = '';
|
||||||
$unfollow_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])) {
|
if ($contact['uid'] && in_array($contact['rel'], [self::SHARING, self::FRIEND])) {
|
||||||
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']);
|
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']);
|
||||||
} elseif(!$contact['pending']) {
|
} elseif(!$contact['pending']) {
|
||||||
|
|
Loading…
Reference in a new issue