aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-31 20:54:24 -0700
committerFriendika <info@friendika.com>2011-10-31 20:54:24 -0700
commite28b143fb6f6dfe7f1d8e6f0f2dee1184e1b85b7 (patch)
tree21807814152a7b95aafb27700a96dc0990b783d5 /include/poller.php
parentd4644d73392f335a3cc488fbd8935068a567edcf (diff)
downloadvolse-hubzilla-e28b143fb6f6dfe7f1d8e6f0f2dee1184e1b85b7.tar.gz
volse-hubzilla-e28b143fb6f6dfe7f1d8e6f0f2dee1184e1b85b7.tar.bz2
volse-hubzilla-e28b143fb6f6dfe7f1d8e6f0f2dee1184e1b85b7.zip
perform poco_load
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php
index f81e879b4..92594568e 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -24,6 +24,7 @@ function poller_run($argv, $argc){
require_once('include/items.php');
require_once('include/Contact.php');
require_once('include/email.php');
+ require_once('include/socgraph.php');
load_config('config');
load_config('system');
@@ -528,6 +529,20 @@ function poller_run($argv, $argc){
intval($contact['id'])
);
+
+ // load current friends if possible.
+
+ if($contact['poco']) {
+ $r = q("SELECT count(*) as total from glink
+ where `cid` = %d and updated > UTC_TIMESTAMP() - INTERVAL 1 DAY",
+ intval($contact['id'])
+ );
+ }
+ if(count($r)) {
+ if(! $r[0]['total'])
+ poco_load($contact['id'],$importer_uid,$contact['poco']);
+ }
+
// loop - next contact
}
}