Move the contact discovery into the background
This commit is contained in:
parent
fc9c6e6bfd
commit
166519fc4d
3 changed files with 41 additions and 17 deletions
|
@ -266,17 +266,17 @@ function poco_check($profile_url, $name, $network, $profile_photo, $about, $loca
|
|||
poco_check_server($server_url, $network);
|
||||
|
||||
// Fetch last update manually if it is enabled in the system
|
||||
if (get_config('system','poco_completion') AND ($orig_updated == "0000-00-00 00:00:00")
|
||||
AND poco_do_update($created, $updated, $last_failure, $last_contact)
|
||||
AND poco_reachable($profile_url, $server_url, $network)) {
|
||||
$last_updated = poco_last_updated($profile_url);
|
||||
if ($last_updated) {
|
||||
$updated = $last_updated;
|
||||
$last_contact = datetime_convert();
|
||||
logger("Last updated for profile ".$profile_url.": ".$updated, LOGGER_DEBUG);
|
||||
} else
|
||||
$last_failure = datetime_convert();
|
||||
}
|
||||
//if (get_config('system','poco_completion') AND ($orig_updated == "0000-00-00 00:00:00")
|
||||
// AND poco_do_update($created, $updated, $last_failure, $last_contact)
|
||||
// AND poco_reachable($profile_url, $server_url, $network)) {
|
||||
// $last_updated = poco_last_updated($profile_url);
|
||||
// if ($last_updated) {
|
||||
// $updated = $last_updated;
|
||||
// $last_contact = datetime_convert();
|
||||
// logger("Last updated for profile ".$profile_url.": ".$updated, LOGGER_DEBUG);
|
||||
// } else
|
||||
// $last_failure = datetime_convert();
|
||||
//}
|
||||
|
||||
if(count($x)) {
|
||||
$gcid = $x[0]['id'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue