@grunfink@comam.es
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.
=> More informations about this toot | More toots from octade@soc.octade.net
@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.
=> More informations about this toot | More toots from Zergling_man@sacred.harpy.faith
In httpd.c httpd_connection() it first calls server_get_handler, then html_get_handler if the former doesn't handle the request. server_get_handler only serves timelines from "/?t=" though, which is the tag search. So:
That's the situation as-is. For the future, I'd advise both code paths for RSS feeds use the same pagination though, whether it's max_timeline_entries or rss_entries or whatnot.
CC: @grunfink@comam.es @octade@soc.octade.net
=> More informations about this toot | More toots from cy@fedicy.us.to
Hi. I think I'll set the RSS entry count configurable server-wide instead of hardcoded.
=> More informations about this toot | More toots from grunfink@comam.es
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.
=> More informations about this toot | More toots from octade@soc.octade.net
Yes, it will be a different knob, but shared with the number of public posts returned by the ActivityPub outbox (that is also hardcoded to 20 posts).
=> More informations about this toot | More toots from grunfink@comam.es This content has been proxied by September (3851b).Proxy Information
text/gemini