mirror of
https://github.com/friendica/friendica
synced 2025-04-30 11:04:29 +02:00
Update gcontact when public contact is updated
This commit is contained in:
parent
80c3a81618
commit
7b0a9ffd89
4 changed files with 46 additions and 93 deletions
|
@ -191,11 +191,9 @@ class OnePoll
|
|||
}
|
||||
|
||||
self::updateContact($contact, ['last-update' => $updated, 'success_update' => $updated]);
|
||||
DBA::update('gcontact', ['last_contact' => $updated], ['nurl' => $contact['nurl']]);
|
||||
Contact::unmarkForArchival($contact);
|
||||
} elseif (in_array($contact["network"], [Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, Protocol::FEED])) {
|
||||
self::updateContact($contact, ['last-update' => $updated, 'failure_update' => $updated]);
|
||||
DBA::update('gcontact', ['last_failure' => $updated], ['nurl' => $contact['nurl']]);
|
||||
Contact::markForArchival($contact);
|
||||
} else {
|
||||
self::updateContact($contact, ['last-update' => $updated]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue