figure out why poller isn't picking up old posts which failed to deliver
This commit is contained in:
parent
be289a96ad
commit
85e291f535
@ -69,7 +69,7 @@ function onepoll_run($argv, $argc){
|
|||||||
|
|
||||||
$last_update = (($contact['abook_updated'] === '0000-00-00 00:00:00')
|
$last_update = (($contact['abook_updated'] === '0000-00-00 00:00:00')
|
||||||
? datetime_convert('UTC','UTC','now - 7 days')
|
? 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
|
// update permissions
|
||||||
@ -99,10 +99,11 @@ function onepoll_run($argv, $argc){
|
|||||||
|
|
||||||
if($contact['xchan_connurl']) {
|
if($contact['xchan_connurl']) {
|
||||||
$feedurl = str_replace('/poco/','/zotfeed/',$channel['xchan_connurl']);
|
$feedurl = str_replace('/poco/','/zotfeed/',$channel['xchan_connurl']);
|
||||||
|
$x = z_fetch_url($feedurl . '?f=&mindate=' . $last_update);
|
||||||
$x = z_fetch_url($feedurl . '?f=$mindate=' . $last_update);
|
|
||||||
if($x['success']) {
|
if($x['success']) {
|
||||||
$total = 0;
|
$total = 0;
|
||||||
|
logger('onepoll: feed update ' . $contact['xchan_name']);
|
||||||
|
|
||||||
$j = json_decode($x['body'],true);
|
$j = json_decode($x['body'],true);
|
||||||
if($j['success'] && $j['messages']) {
|
if($j['success'] && $j['messages']) {
|
||||||
foreach($j['messages'] as $message) {
|
foreach($j['messages'] as $message) {
|
||||||
|
@ -224,7 +224,7 @@ function poller_run($argv, $argc){
|
|||||||
$update = true;
|
$update = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dbg(0);
|
|
||||||
if((! $update) && (! $force))
|
if((! $update) && (! $force))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user