Skip to content

Atom pagination support#303

Merged
ai merged 9 commits intohplush:mainfrom
ashlkv:atom-pagination
Jun 13, 2025
Merged

Atom pagination support#303
ai merged 9 commits intohplush:mainfrom
ashlkv:atom-pagination

Conversation

@ashlkv
Copy link
Copy Markdown
Contributor

@ashlkv ashlkv commented Jun 12, 2025

Fixes #56

Adds atom pagination support in Atom loader. Taps into getPosts existing logic, which already returns a tuple of posts + post loader. And if there is a link to next posts in the feed, returns the loader for the next posts recursively.

Motivation

While the pagination is not too widely used in blog feeds (roughly 1.6%), it's a nice-to-have for Mastodon and other social media.

@ashlkv ashlkv force-pushed the atom-pagination branch from abda3c2 to d1638bc Compare June 12, 2025 15:21
@ashlkv ashlkv marked this pull request as ready for review June 13, 2025 05:40
@ashlkv ashlkv force-pushed the atom-pagination branch from 7bfd258 to 39c0bbd Compare June 13, 2025 05:43
Comment thread core/test/loader/atom.test.ts Outdated
Comment thread core/loader/atom.ts Outdated
@ashlkv ashlkv force-pushed the atom-pagination branch from d0b9d5f to ae57c98 Compare June 13, 2025 10:20
Comment thread core/README.md Outdated
@ashlkv ashlkv force-pushed the atom-pagination branch from 911bfeb to 8561a71 Compare June 13, 2025 10:24
Comment thread core/README.md Outdated
Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>
@ai
Copy link
Copy Markdown
Contributor

ai commented Jun 13, 2025

LGTM. I will merge it after the conference.

@ai ai merged commit 3dfddfb into hplush:main Jun 13, 2025
5 checks passed
@ai
Copy link
Copy Markdown
Contributor

ai commented Jun 13, 2025

Thanks. Amazing job as usual.

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.

Add Atom pagination support

2 participants