mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
Don't offer to unfollow yourself
This commit is contained in:
parent
782a54cf8c
commit
547a13661a
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class VCard
|
||||||
$pending = $pcontact['pending'] ?? false;
|
$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])) {
|
if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) {
|
||||||
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
|
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
|
||||||
} elseif (!$pending) {
|
} elseif (!$pending) {
|
||||||
|
|
Loading…
Reference in a new issue