aboutsummaryrefslogtreecommitdiffstats
path: root/include/externals.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-27 16:40:10 -0700
committerfriendica <info@friendica.com>2014-03-27 16:40:10 -0700
commit1f931c0e3c687d91e53fdf1b6337febc8125bd74 (patch)
tree7544447d7d8d32a93da49a110b32132f0e5f1c6f /include/externals.php
parent2b6feeb835d9e47ef122a6817b2b0633a2bb5927 (diff)
downloadvolse-hubzilla-1f931c0e3c687d91e53fdf1b6337febc8125bd74.tar.gz
volse-hubzilla-1f931c0e3c687d91e53fdf1b6337febc8125bd74.tar.bz2
volse-hubzilla-1f931c0e3c687d91e53fdf1b6337febc8125bd74.zip
firehose: provide system prefs to allow folks to fine tune to their needs
Diffstat (limited to 'include/externals.php')
-rw-r--r--include/externals.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/externals.php b/include/externals.php
index 48aeaf6b3..946931033 100644
--- a/include/externals.php
+++ b/include/externals.php
@@ -28,7 +28,11 @@ function externals_run($argv, $argc){
}
if($url) {
- $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - 15 days'));
+ $days = intval(getconfig('externals','since_days'));
+ if($days === false)
+ $days = 15;
+
+ $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . $days . ' days'));
$x = z_fetch_url($feedurl);
if(($x) && ($x['success'])) {