aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-29 17:55:15 -0700
committerfriendica <info@friendica.com>2014-10-29 17:55:15 -0700
commitcfbfdca610c96a4a3337b56f2be73aaab535c554 (patch)
tree94742c3fa3f4ad9c1af90ff9fd6e5aa8fe26bb8c /mod
parent7d9f785758ee6e4c19838e532f9930e227e95fc6 (diff)
downloadvolse-hubzilla-cfbfdca610c96a4a3337b56f2be73aaab535c554.tar.gz
volse-hubzilla-cfbfdca610c96a4a3337b56f2be73aaab535c554.tar.bz2
volse-hubzilla-cfbfdca610c96a4a3337b56f2be73aaab535c554.zip
allow feed paging
Diffstat (limited to 'mod')
-rw-r--r--mod/feed.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/feed.php b/mod/feed.php
index 776f9787f..3b622fc17 100644
--- a/mod/feed.php
+++ b/mod/feed.php
@@ -12,6 +12,9 @@ function feed_init(&$a) {
$params['type'] = ((stristr(argv(0),'json')) ? 'json' : 'xml');
$params['pages'] = ((x($_REQUEST,'pages')) ? intval($_REQUEST['pages']) : 0);
$params['top'] = ((x($_REQUEST,'top')) ? intval($_REQUEST['top']) : 0);
+ $params['start'] = ((x($params,'start')) ? intval($params['start']) : 0);
+ $params['records'] = ((x($params,'records')) ? intval($params['records']) : 40);
+ $params['direction'] = ((x($params,'direction')) ? dbesc($params['direction']) : 'desc');
$channel = '';
if(argc() > 1) {