-
@[email protected]
Does anyone know if there is a way to increase the number of recent entries in the public RSS feeds for a snac2 profile? Is there a query parameter that can be suffixed to the URL?
I would like to increase it to 100 instead of the default.
-
@octade @grunfink According to html.c line 2995, it is probably controlled by the max_timeline_entries config var.
This post is how I learned that snac2 exists though so all I know is what I spend a few minutes grepping. In particular, this function does have a little check just above that checks the Accept header to see if it should return RSS.
But that check sets p_path which then gets checked a little while later for null, and that's apparently what determines public timeline.
Ah, it gets checked for that val much later for "public timeline in RSS format".
... And that has a hard-coded value of 20.
So basically, you have to edit it (line 3432 of html.c) and recompile.
Maybe you want to turn it into a config option. I don't know what would be involved in that. -
OCTADEreplied to Zergling_man last edited by [email protected]@[email protected]
I suppose this would make a useful feature request. The obvious trick is likely patching to include a parameter check from server.json and replacing the hard-coded with a variable containing that. I think 100 is a good upper bound for parameter checking, although some few might want it to be higher if they are following the most loquacious of fedi tooters. A link parameter would allow the best of both worlds so the RSS reader could select the upper bound.
I'm going to look at the source now. Thanks for the heads up.
-
@[email protected]
I set the rss limit to 100 and recompiled with post limit set at 50. Sure enough, the rss is served up to the post limit number.
Then I set both to 100 and it pulled 79 entries. I don't know why it didn't pull 100. There might have been a caching issue in my reader or in the proxy. Rather than troubleshoot that I nuked the reader cache for a new compilation and rss test.
Then I recompiled with the rss limit set to 300 and I set the timeline page limit to 300, and it pulled the full history of 193 local posts into the rss feed.
-
Hi. I think I'll set the RSS entry count configurable server-wide instead of hardcoded.
-
Awesome! I'll test it when it goes out to main. Will you be able to decouple the rss entry number from max_timeline_entries? That is not critical but it would be helpful for pulling bigger feeds over the number of web interface entries.
Copyright © 2025 NodeBB | Contributors