gotosocial/internal/paging
kim 8264b63337 [bugfix] ensure timeline limit query is respected (#4141)
# Description

Fixes a bug in the new timeline code in which the limit query parameter wasn't always being fulfilled, in which case some clients like Tusky would then assume it didn't need to add a "load more" placeholder view even when there were more statuses to be loaded. This also fiddles around a bit in the logging middleware handler to add some more code comments, and add logging of full request URIs when it is safe to do so.

## Checklist

- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [x] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [x] I/we have commented the added code, particularly in hard-to-understand areas.
- [ ] I/we have made any necessary changes to documentation.
- [x] I/we have added tests that cover new code.
- [x] I/we have run tests and they pass locally with the changes.
- [x] I/we have run `go fmt ./...` and `golangci-lint run`.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4141
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-05-06 13:30:23 +00:00
..
boundary.go [bugfix] further paging mishaps (#2884) 2024-04-30 16:22:23 +02:00
order.go [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
page.go [bugfix] ensure timeline limit query is respected (#4141) 2025-05-06 13:30:23 +00:00
page_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
parse.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
response.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
response_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00