]> git.mxchange.org Git - friendica.git/commitdiff
Issue 7953: Don't show follow/unfollow on the hovercard for the "self" contact
authorMichael <heluecht@pirati.ca>
Mon, 16 Dec 2019 06:35:29 +0000 (06:35 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 16 Dec 2019 06:35:29 +0000 (06:35 +0000)
src/Model/Contact.php

index 76c9cd01692f590760395616640682e3d4af3c4b..534c99d465e4453d784cd2aedd1b941d62faa263 100644 (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']) {