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);
if (!empty($key['url']) && !empty($key['type']) && ($key['type'] == 'Tombstone')) {
Logger::info('Actor is a tombstone', ['key' => $key]);
- // We now delete everything that we possibly knew from this actor
- Contact::deleteContactByUrl($key['url']);
+ if (!Contact::isLocal($key['url'])) {
+ // We now delete everything that we possibly knew from this actor
+ Contact::deleteContactByUrl($key['url']);
+ }
return null;
}