From 50d1cb2e3afe265004c7c08c8a63876c4b541469 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 1 Jan 2013 23:56:27 -0800 Subject: start building social graph --- include/onepoll.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'include/onepoll.php') 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; } -- cgit v1.2.3