mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Don't delete local tombstone contacts
This commit is contained in:
parent
aa32abbdb4
commit
0c21588ab9
2 changed files with 9 additions and 2 deletions
|
@ -1941,6 +1941,11 @@ class Contact
|
|||
return false;
|
||||
}
|
||||
|
||||
if (Contact::isLocal($ret['url'])) {
|
||||
Logger::info('Local contacts are not updated here.');
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!empty($ret['account-type']) && $ret['account-type'] == User::ACCOUNT_TYPE_DELETED) {
|
||||
Logger::info('Deleted account', ['id' => $id, 'url' => $ret['url'], 'ret' => $ret]);
|
||||
self::remove($id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue