aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook/facebook.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-02 20:14:37 -0700
committerFriendika <info@friendika.com>2011-05-02 20:14:37 -0700
commit0f261ef8fa41dc3c438b4eba36b314915e34aaf6 (patch)
treedce52be6e57d263ffc70829cead53aa1967ef463 /addon/facebook/facebook.php
parent4332e39d4d43d4f1fdfd490379ad427a78cb2267 (diff)
downloadvolse-hubzilla-0f261ef8fa41dc3c438b4eba36b314915e34aaf6.tar.gz
volse-hubzilla-0f261ef8fa41dc3c438b4eba36b314915e34aaf6.tar.bz2
volse-hubzilla-0f261ef8fa41dc3c438b4eba36b314915e34aaf6.zip
configurable FB poll interval, default 1hr.
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r--addon/facebook/facebook.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 8999561c8..64ca9af56 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -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;
}