aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-03 19:07:14 -0700
committerfriendica <info@friendica.com>2014-09-03 19:07:14 -0700
commit844087bc71f333719c1e08d807874f3ae3a7053e (patch)
tree795180dfb37bdec9a9f161b242f742896f672b65 /include/poller.php
parentd93f7d688ddf5a0f1295a93a4c84123e9e1b252f (diff)
downloadvolse-hubzilla-844087bc71f333719c1e08d807874f3ae3a7053e.tar.gz
volse-hubzilla-844087bc71f333719c1e08d807874f3ae3a7053e.tar.bz2
volse-hubzilla-844087bc71f333719c1e08d807874f3ae3a7053e.zip
implement service class for feed polling frequenecy, fixed a service class bug, moved service class stuff from plugin to account.php where it belongs and load that by default instead of on demand
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index 2ba86dc0b..b26b9e696 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -151,7 +151,6 @@ function poller_run($argv, $argc){
q("delete from notify where seen = 1 and date < UTC_TIMESTAMP() - INTERVAL 30 DAY");
// expire any expired accounts
- require_once('include/account.php');
downgrade_accounts();
// If this is a directory server, request a sync with an upstream
@@ -264,7 +263,9 @@ function poller_run($argv, $argc){
$c = $contact['abook_connected'];
if($contact['abook_flags'] & ABOOK_FLAG_FEED) {
- $min = intval(get_config('system','minimum_feedcheck_minutes'));
+ $min = service_class_fetch($contact['abook_channel'],'minimum_feedcheck_minutes');
+ if(! $min)
+ $min = intval(get_config('system','minimum_feedcheck_minutes'));
if(! $min)
$min = 60;
$x = datetime_convert('UTC','UTC',"now - $min minutes");