From c4e381fbd79325586d1c8c518071230edd685864 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 16 Dec 2019 06:35:29 +0000 Subject: [PATCH] Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 76c9cd016..534c99d46 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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']) {