mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
Moved some functionality back to the cron. Speed up things
This commit is contained in:
parent
ff739b0a23
commit
32e8f3468d
6 changed files with 77 additions and 36 deletions
|
@ -168,8 +168,18 @@ function onepoll_run(&$argv, &$argc){
|
|||
);
|
||||
|
||||
// Update the contact entry
|
||||
if(($contact['network'] === NETWORK_OSTATUS) || ($contact['network'] === NETWORK_DIASPORA) || ($contact['network'] === NETWORK_DFRN))
|
||||
update_contact($contact["id"]);
|
||||
if(($contact['network'] === NETWORK_OSTATUS) || ($contact['network'] === NETWORK_DIASPORA) || ($contact['network'] === NETWORK_DFRN)) {
|
||||
if (!poco_reachable($contact['url'])) {
|
||||
logger("Skipping probably dead contact ".$contact['url']);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!update_contact($contact["id"])) {
|
||||
mark_for_death($contact);
|
||||
return;
|
||||
} else
|
||||
unmark_for_death($contact);
|
||||
}
|
||||
|
||||
if($contact['network'] === NETWORK_DFRN) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue