diff options
author | Thomas Willingham <founder@kakste.com> | 2013-01-02 11:40:17 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-01-02 11:40:17 +0000 |
commit | 577236c372b4eaa1e93d60d7bedaecea8ef8c97f (patch) | |
tree | e9c38e309a8edcb72e25f17e751eeb6bac3feea0 /include/onepoll.php | |
parent | 2fd0653d6ff3c60920946f83d249c8763dcad4a8 (diff) | |
parent | 4108598133eae97e7c8a0b8e13ead4856f423cff (diff) | |
download | volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.tar.gz volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.tar.bz2 volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.zip |
Merge remote-tracking branch 'upstream/master'
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..a2b3f7a9f 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 xlink_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; } |