-
-
Notifications
You must be signed in to change notification settings - Fork 89
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 since_id is ignored when max_id is set #89
Comments
This issue is discussed at #86 |
Yeah, I read the above discussion. In that issue you yourself even give this example:
But that's not what's happening because if you set max_id, since_id is ignored... |
Merged
@pacmessica I am sorry to be late. |
great, thanks! |
closable? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, if I have the following statusIDs.
100, 99, 98 ... 1
If I make the following call:
/api/v1/timelines/public?since_id=74&max_id=78
I would expect the following results: [77, 76, 75]. This is also what I get when I call the api directly.
However, what I currently see is : [77, 76, 75, 74, 73, 72, ... etc]
I don't understand why go-mastodon deliberately sets since_id to an empty string if a max_id is specified. I would like to be able to paginate through the results until I reach the since_id that I specified, but that's not currently possible because when I specify a max_id, then my since_id value is ignored...
Instead of https://github.com/mattn/go-mastodon/blob/master/mastodon.go#L311
why not?:
The text was updated successfully, but these errors were encountered: