From: Michael Date: Mon, 16 Dec 2019 06:35:29 +0000 (+0000) Subject: Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c4e381fbd79325586d1c8c518071230edd685864;p=friendica.git Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 76c9cd0169..534c99d465 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']) {