diff options
author | friendica <info@friendica.com> | 2014-08-31 22:15:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-31 22:15:00 -0700 |
commit | 2a37d99958d5591d5b9ccfc9bc615ee0588a6036 (patch) | |
tree | c22b433f6a4fe5eeb07d8dfdffb5c4f0fec28cc2 /include/poller.php | |
parent | a63de472cf1b5cff1ebda821d3a6ba39cf37f839 (diff) | |
download | volse-hubzilla-2a37d99958d5591d5b9ccfc9bc615ee0588a6036.tar.gz volse-hubzilla-2a37d99958d5591d5b9ccfc9bc615ee0588a6036.tar.bz2 volse-hubzilla-2a37d99958d5591d5b9ccfc9bc615ee0588a6036.zip |
get out the sunnies
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php index 546a2d6d1..52ca98c97 100644 --- a/include/poller.php +++ b/include/poller.php @@ -244,7 +244,7 @@ function poller_run($argv, $argc){ $sql_extra AND (( abook_flags & %d ) OR ( abook_flags = %d )) AND (( account_flags = %d ) OR ( account_flags = %d )) $abandon_sql ORDER BY RAND()", - intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_UNCONNECTED), + intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_UNCONNECTED|ABOOK_FLAG_FEED), intval(0), intval(ACCOUNT_OK), intval(ACCOUNT_UNVERIFIED) // FIXME @@ -260,6 +260,19 @@ function poller_run($argv, $argc){ $t = $contact['abook_updated']; $c = $contact['abook_connected']; + if($contact['abook_flags'] & ABOOK_FLAG_FEED) { + $min = intval(get_config('system','minimum_feedcheck_minutes')); + if(! $min) + $min = 60; + $x = datetime_convert('UTC','UTC',"now - $min minutes"); + if($c < $x) { + proc_run('php','include/onepoll.php',$contact['abook_id']); + if($interval) + @time_sleep_until(microtime(true) + (float) $interval); + } + continue; + } + if($c == $t) { if(datetime_convert('UTC','UTC', 'now') > datetime_convert('UTC','UTC', $t . " + 1 day")) |