1
0
Fork 0

Merge pull request #10657 from annando/self-unfollow

Don't offer to unfollow yourself
This commit is contained in:
Hypolite Petovan 2021-09-02 20:04:16 -04:00 committed by GitHub
commit 1852ea98cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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