X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget%2FVCard.php;h=e462ab0aaa466c0868700c42812a0bd53a7eb9e0;hb=f61fd93db02bc2d66e1473ca34dc1154e77217a3;hp=3a29522cfe90cc49cdfd02403a285e326d2527b1;hpb=40f734da586ee4caa781698c397897c8b541503f;p=friendica.git diff --git a/src/Content/Widget/VCard.php b/src/Content/Widget/VCard.php index 3a29522cfe..e462ab0aaa 100644 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@ -1,6 +1,6 @@ $contact ?? [], 'callstack' => System::callstack(20)]); @@ -70,7 +70,7 @@ class VCard $rel = $contact['rel']; $pending = $contact['pending']; } else { - $pcontact = Contact::selectFirst([], ['uid' => DI::userSession()->getLocalUserId(), 'uri-id' => $contact['uri-id']]); + $pcontact = Contact::selectFirst([], ['uid' => DI::userSession()->getLocalUserId(), 'uri-id' => $contact['uri-id'], 'deleted' => false]); $id = $pcontact['id'] ?? 0; $rel = $pcontact['rel'] ?? Contact::NOTHING; @@ -83,9 +83,9 @@ class VCard if (empty($contact['self']) && Protocol::supportsFollow($contact['network'])) { if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) { - $unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1'; + $unfollow_link = 'contact/unfollow?url=' . urlencode($contact['url']) . '&auto=1'; } elseif (!$pending) { - $follow_link = 'follow?url=' . urlencode($contact['url']) . '&auto=1'; + $follow_link = 'contact/follow?url=' . urlencode($contact['url']) . '&auto=1'; } }