aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-27 18:53:14 -0700
committerfriendica <info@friendica.com>2014-03-27 18:53:14 -0700
commit8c3efd20f4a56517d714bc533549251f41308d7e (patch)
tree03181740e12c8c25ce92ff3c08a41f000f13fe43 /include
parent1177f97a50b2b7917fb9bed64d8b746617163fb8 (diff)
downloadvolse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.tar.gz
volse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.tar.bz2
volse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.zip
this should work a bit better
Diffstat (limited to 'include')
-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);
}
}
}