Merge pull request #7957 from annando/issue-7953

Issue 7953: Don't show follow on the hovercard for the "self" contact
2022.09-rc
Tobias Diekershoff 2019-12-16 07:52:17 +01:00 zatwierdzone przez GitHub
commit 1345c9e191
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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']) {