]> git.mxchange.org Git - friendica.git/commitdiff
Don't offer to unfollow yourself
authorMichael <heluecht@pirati.ca>
Thu, 2 Sep 2021 19:38:10 +0000 (19:38 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 2 Sep 2021 19:38:10 +0000 (19:38 +0000)
src/Content/Widget/VCard.php

index a44f8f0b4a7ece6400864b04f25135620ebe76da..d66b60513efa6a08ba3fee49f5761b13d1fe9a9b 100644 (file)
@@ -75,7 +75,7 @@ class VCard
                                $pending = $pcontact['pending'] ?? false;
                        }
 
-                       if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
+                       if (!$contact['self'] && in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
                                if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) {
                                        $unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
                                } elseif (!$pending) {