mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00: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
|
@ -902,7 +902,7 @@ class Contact
|
|||
self::clearFollowerFollowingEndpointCache($contact['uid']);
|
||||
|
||||
// Archive the contact
|
||||
self::update(['archive' => true, 'network' => Protocol::PHANTOM, 'deleted' => true], ['id' => $id]);
|
||||
self::update(['archive' => true, 'network' => Protocol::PHANTOM, 'rel' => self::NOTHING, 'deleted' => true], ['id' => $id]);
|
||||
|
||||
if (!DBA::exists('contact', ['uri-id' => $contact['uri-id'], 'deleted' => false])) {
|
||||
Avatar::deleteCache($contact);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue