status.cafe/manage shows page 1 for pages 10 and above

Author Topic
rickgottaken

Posted 2026-03-27 04:05:32

Steps for reproduction:

0. Have/make atleast 181 statuses (the minimum for page 10 to be accessible)

1. Navigate to status.cafe/manage?page=9

2. Click "Older statuses"

3. Observe as the URL changes to status.cafe/manage?page=10 while page 1 is served instead

rickgottaken

Posted 2026-03-27 04:54:21

After almost an hour of searching through the source code, I've found the root of this bug. It's at line 29 of user_show.go: https://git.sr.ht/~m15o/status/tree/ecf4203f3951ed4f7aea9ced0592cd2924d4de65/item/web/handler/user_show.go#L29, specifically "len(val[0]) == 1". Perhaps it was thought people would never reach 181 statuses and then need to edit/remove their first one? Or maybe this was meant to prevent the page parameter being 0 characters long?

Last edited on 2026-03-27 05:26:28