Don't offer to unfollow yourself

This commit is contained in:
Michael 2021-09-02 19:38:10 +00:00
parent 782a54cf8c
commit 547a13661a

View 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) {