aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-29 18:17:15 -0700
committerfriendica <info@friendica.com>2013-08-29 18:17:15 -0700
commit85e291f5357bc28b108378816af97b545aacca3f (patch)
treef47eb6fed6eef06be903576d7e27f2b47c33a5d4 /include/onepoll.php
parentbe289a96ad3abe1f373517920c89613cf80076a9 (diff)
downloadvolse-hubzilla-85e291f5357bc28b108378816af97b545aacca3f.tar.gz
volse-hubzilla-85e291f5357bc28b108378816af97b545aacca3f.tar.bz2
volse-hubzilla-85e291f5357bc28b108378816af97b545aacca3f.zip
figure out why poller isn't picking up old posts which failed to deliver
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index a225edfd8..50c2566be 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -69,7 +69,7 @@ function onepoll_run($argv, $argc){
$last_update = (($contact['abook_updated'] === '0000-00-00 00:00:00')
? datetime_convert('UTC','UTC','now - 7 days')
- : datetime_convert('UTC','UTC',$contact['abook_updated'])
+ : datetime_convert('UTC','UTC',$contact['abook_updated'] . ' - 2 days')
);
// update permissions
@@ -98,11 +98,12 @@ function onepoll_run($argv, $argc){
return;
if($contact['xchan_connurl']) {
- $feedurl = str_replace('/poco/','/zotfeed/',$channel['xchan_connurl']);
-
- $x = z_fetch_url($feedurl . '?f=$mindate=' . $last_update);
+ $feedurl = str_replace('/poco/','/zotfeed/',$channel['xchan_connurl']);
+ $x = z_fetch_url($feedurl . '?f=&mindate=' . $last_update);
if($x['success']) {
$total = 0;
+ logger('onepoll: feed update ' . $contact['xchan_name']);
+
$j = json_decode($x['body'],true);
if($j['success'] && $j['messages']) {
foreach($j['messages'] as $message) {