From 547a13661a1d2703dc09b1961f637608b16f3e57 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 2 Sep 2021 19:38:10 +0000 Subject: [PATCH] Don't offer to unfollow yourself --- src/Content/Widget/VCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {