limit rss streams to 100 items by default
darcs-hash:20080626213018-34904-d5efe7ae9489afa9f07e0336902c713ac731d948.gz
This commit is contained in:
parent
c2d20ccdd8
commit
f4a0c2b801
@ -19,11 +19,16 @@
|
||||
|
||||
if (!defined('LACONICA')) { exit(1); }
|
||||
|
||||
define('DEFAULT_RSS_LIMIT', 48);
|
||||
|
||||
class Rss10Action extends Action {
|
||||
|
||||
function handle($args) {
|
||||
parent::handle($args);
|
||||
$limit = (int) $this->trimmed('limit');
|
||||
if ($limit == 0) {
|
||||
$limit = DEFAULT_RSS_LIMIT;
|
||||
}
|
||||
$this->show_rss($limit);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user