-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination using offset parameter always return the same statuses #342
Comments
I'm just dipping into this quickly and it looks like you're doing something slightly different to what I was doing (search rather than timelines, for starters), so apologies if this isn't useful, but this pagination code worked for me:
Think I had an issue at first as well, until I started using Ranges. Am running with snapshot bigbone-2.0.0-20230818.202222-21 (I need to update). Also: STATUSES_PER_PAGE is just an int: |
@MastodonContentMover The |
I just checked, and it seems to be the case that the For what it's worth, using a type currently does not work due to a bug on our end. Will create an issue for that part. |
The fact that offset can not be used without specifying a type seems to be by design according to Mastodon's search_service.rb, which contains this line:
|
I tried to replace the second parameters by |
@vvvlll93 This will start working with the next published snapshot - a bug preventing pagination for single-type searches was just fixed. |
- offset parameter will only be interpreted by Mastodon server if a type is specified; if not, default value of 0 will always be used by server - this behaviour is currently not documented by Mastodon, see issue: mastodon/documentation#1336 Closes andregasser#342.
- offset parameter will only be interpreted by Mastodon server if a type is specified; if not, default value of 0 will always be used by server - this behaviour is currently not documented by Mastodon, see issue: mastodon/documentation#1336 Closes #342.
Hi,
I'm having trouble with the pagination. I followed the previous example but each time i'm getting the same result.
Here the code i use :
When i check the result each time, the offset parameters increase (20, 40, ...) but the results always stay the same.
I tried with the keyword "Paris", and also i have the latest version in my
pom.xml
:2.0.0-SNAPSHOT
.Do you have any idea why this happens ?
Thanks.
The text was updated successfully, but these errors were encountered: