bug: Backwards pagination on relations endpoint only returns one event #2467

Closed
opened 2026-11-07 15:27:46 +00:00 by Henry-Hiles · 0 comments
Member

What is the bug?

In dir=b, next_batch is taken from events.first(), which is the event nearest the start, not the furthest, so each page only moves by one event.

Steps to reproduce

Call the relations endpoint, passing dir=b and a next_batch

Server name and version

federated.nexus + local repro, 02aed4fb23

Additional context

No response

### What is the bug? In `dir=b`, `next_batch` is taken from `events.first()`, which is the event nearest the start, not the furthest, so each page only moves by one event. ### Steps to reproduce Call the relations endpoint, passing `dir=b` and a `next_batch` ### Server name and version federated.nexus + local repro, https://forgejo.ellis.link/continuwuation/continuwuity/commit/02aed4fb23504f54ed068c51175959c2cc71d8d0 ### Additional context _No response_
Jade closed this issue 2026-11-08 19:34:28 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2467
No description provided.