mirror of
https://github.com/friendica/friendica
synced 2025-04-30 01:04:28 +02:00
Fix unfollowing not showing on contact page
- Deleted contact rows kept the relationship status which would keep showing - Deleting contact rows would also not update the corresponding user-contact record
This commit is contained in:
parent
3020dfbeeb
commit
5de8fe3a48
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue