Page 1 of 1

BUG: number of items fetched for RSS is hardcoded

Posted: Wed Sep 28, 2005 5:51 pm
by Romain Wartel
15 items only can be published via RSS.

This limitation in NOT configurable in the configuration file, it is hardcoded in rss.php:

$entries = serendipity_fetchEntries(null, true, 15, false, (isset($modified_since) ? $modified_since : false), 'timestamp DESC', '', false, true);

This should be replaced by:

$entries = serendipity_fetchEntries(null, true, $serendipity['fetchLimit'], false, (isset($modified_since) ? $modified_since : false), 'timestamp DESC', '', false, true);

Regards,
Romain.

Re: BUG: number of items fetched for RSS is hardcoded

Posted: Thu Sep 29, 2005 2:14 pm
by garvinhicking
"15" is usually a standard item value for RSS feeds. Since there are many blogs that use "1" for a fetchlimit, then their rss feeds would also only contain 1 item, which is not really wanted.

So we would need to introduce another config item, but I think editing the file at the moment is a good idea, because it really is a standard setting...

Many thanks for your idea and suggestion though!

Regards,
Garvin