aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/externals.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/externals.php b/include/externals.php
index 80476d4a7..244b4a59e 100644
--- a/include/externals.php
+++ b/include/externals.php
@@ -28,11 +28,14 @@ function externals_run($argv, $argc){
}
if($url) {
- $days = intval(get_config('externals','since_days'));
+ logger('externals: pulling public content from ' . $url, LOGGER_DEBUG);
+ $days = get_config('externals','since_days');
if($days === false)
$days = 15;
- $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . $days . ' days'));
+ $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . intval($days) . ' days'));
+
+ logger('externals: pulling public content from ' . $feedurl, LOGGER_DEBUG);
$x = z_fetch_url($feedurl);
if(($x) && ($x['success'])) {
@@ -45,7 +48,7 @@ function externals_run($argv, $argc){
array(array('hash' => $sys['xchan_hash'])), false, true);
$total ++;
}
- logger('import_public_posts: ' . $total . ' messages imported', LOGGER_DEBUG);
+ logger('externals: import_public_posts: ' . $total . ' messages imported', LOGGER_DEBUG);
}
}
}