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

pull/7957/head
Michael 2019-12-16 06:35:29 +00:00
rodzic b096172cdc
commit c4e381fbd7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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']) {