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:
Tobias Diekershoff 2019-12-16 07:52:17 +01:00 committed by GitHub
commit 1345c9e191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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