Ancestors

Toot

Written by OCTADE on 2025-01-04 at 03:37

@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

Descendants

Written by Zergling_man on 2025-01-04 at 04:06

@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

Written by cy on 2025-01-04 at 20:10

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

Written by The Real Grunfink on 2025-01-04 at 07:47

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

Written by OCTADE on 2025-01-04 at 09:17

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

Written by The Real Grunfink on 2025-01-04 at 14:03

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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113767994965573965
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
354.280622 milliseconds
Gemini-to-HTML Time
2.074072 milliseconds

This content has been proxied by September (3851b).