diff options
author | friendica <info@friendica.com> | 2013-01-01 23:56:27 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-01 23:56:27 -0800 |
commit | 50d1cb2e3afe265004c7c08c8a63876c4b541469 (patch) | |
tree | 917fa3317eac2ec6f2d23462775e83fab014ce9d /include/onepoll.php | |
parent | 4d7fe15d3b31f7c5279b08c73e23cb21f906cd15 (diff) | |
download | volse-hubzilla-50d1cb2e3afe265004c7c08c8a63876c4b541469.tar.gz volse-hubzilla-50d1cb2e3afe265004c7c08c8a63876c4b541469.tar.bz2 volse-hubzilla-50d1cb2e3afe265004c7c08c8a63876c4b541469.zip |
start building social graph
Diffstat (limited to 'include/onepoll.php')
-rw-r--r-- | include/onepoll.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/onepoll.php b/include/onepoll.php index 1d7ac226d..147d21430 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -94,19 +94,17 @@ function onepoll_run($argv, $argc){ // set last updated timestamp -/* - if($contact['poco']) { - $r = q("SELECT count(*) as total from glink - where `cid` = %d and updated > UTC_TIMESTAMP() - INTERVAL 1 DAY", - intval($contact['id']) + $r = null; + + if($contact['xchan_connurl']) { + $r = q("SELECT xlink_id from xlink + where xlink_xchan = '%s'and updated > UTC_TIMESTAMP() - INTERVAL 1 DAY", + intval($contact['xchan_hash']) ); } - if(count($r)) { - if(! $r[0]['total']) { - poco_load($contact['id'],$importer_uid,0,$contact['poco']); - } + if($r) { + poco_load($contact['xchan_hash'],$contact['xchan_connurl']); } -*/ return; } |