Skip to content

Refactor users.cc RSS generation into functions#129

Open
wandernauta wants to merge 2 commits into
berthubert:mainfrom
wandernauta:rss
Open

Refactor users.cc RSS generation into functions#129
wandernauta wants to merge 2 commits into
berthubert:mainfrom
wandernauta:rss

Conversation

@wandernauta
Copy link
Copy Markdown
Contributor

@wandernauta wandernauta commented May 24, 2026

This splits the different feed-producing functions in users.cc so that they no longer each individually interact with pugixml directly.

The new code always picks the most recent pubDate (in practice: "Document.bijgewerkt") as the channel's lastBuildDate. Before, some functions would pick some earlier date, for example the most recent "datum", or the epoch. Otherwise, the output should be byte-for-byte identical.

Some duplication still remains between the different feed-producing functions, since at the moment they all happen to generate feeds containing Documents; this can be further reduced if desired.

This splits the different feed-producing functions in users.cc so that
they no longer each individually interact with pugixml directly.

The new code always picks the most recent pubDate (in practie:
"bijgewerkt") as the channel's lastBuildDate. Before, some functions
would pick some earlier date, for example the most recent "datum".
Otherwise, the output should be byte-for-byte identical.

Some duplication still remains between the different feed-producing
functions, since at the moment they all happen to generate feeds
containing Documents; this can be further reduced if desired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant