X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fonepoll.php;h=09e7bb7638d85885f1f64ab87984f2ac0abb455f;hb=fc27edb6d76765cd9b85d29a3c41f23f17c6ca41;hp=804a166c80858c6a076de1755cabcbb41509aac6;hpb=267681844d81364afce37c86f92b803c3d8e4c48;p=friendica.git diff --git a/include/onepoll.php b/include/onepoll.php index 804a166c80..09e7bb7638 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -36,11 +36,6 @@ function onepoll_run($argv, $argc){ logger('onepoll: start'); - $abandon_days = intval(get_config('system','account_abandon_days')); - if($abandon_days < 1) - $abandon_days = 0; - - $manual_id = 0; $generation = 0; $hub_update = false; @@ -62,11 +57,6 @@ function onepoll_run($argv, $argc){ // and which have a polling address and ignore Diaspora since // we are unable to match those posts with a Diaspora GUID and prevent duplicates. - $abandon_sql = (($abandon_days) - ? sprintf(" AND `user`.`login_date` > UTC_TIMESTAMP() - INTERVAL %d DAY ", intval($abandon_days)) - : '' - ); - $contacts = q("SELECT `contact`.* FROM `contact` WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != '' AND NOT `network` IN ( '%s', '%s' ) @@ -85,7 +75,6 @@ function onepoll_run($argv, $argc){ } $contact = $contacts[0]; - logger('onepoll: ' . $contact['id'] . ' ' . $contact['name'], LOGGER_DEBUG); $xml = false; @@ -162,6 +151,9 @@ function onepoll_run($argv, $argc){ if(! strstr($handshake_xml,'