configurable FB poll interval, default 1hr.

This commit is contained in:
Friendika
2011-05-02 20:14:37 -07:00
parent 4332e39d4d
commit 0f261ef8fa
4 changed files with 100 additions and 80 deletions

View File

@@ -291,8 +291,12 @@ function facebook_cron($a,$b) {
$last = get_config('facebook','last_poll');
$poll_interval = get_config('facebook','poll_interval');
if(! $poll_interval)
$poll_interval = 3600;
if($last) {
$next = $last + 3600;
$next = $last + $poll_interval;
if($next > time())
return;
}