From: Michael Date: Thu, 2 Sep 2021 19:38:10 +0000 (+0000) Subject: Don't offer to unfollow yourself X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=547a13661a1d2703dc09b1961f637608b16f3e57;p=friendica.git Don't offer to unfollow yourself --- diff --git a/src/Content/Widget/VCard.php b/src/Content/Widget/VCard.php index a44f8f0b4a..d66b60513e 100644 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@ -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) {