Skip to content
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

Clarify use of offset vs. type parameters in Search API #1336

Open
bocops opened this issue Nov 14, 2023 · 0 comments
Open

Clarify use of offset vs. type parameters in Search API #1336

bocops opened this issue Nov 14, 2023 · 0 comments

Comments

@bocops
Copy link

bocops commented Nov 14, 2023

Documentation for the Search API suggests that offset can be used to skip results. According to search_service.rb, this seems to be restricted to searches for a specific type (accounts, hashtags, statuses), and will have no effect if a type is not specified.

This should be clarified in the documentation.

bocops added a commit to bocops/bigbone that referenced this issue Nov 15, 2023
- 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.
andregasser pushed a commit to andregasser/bigbone that referenced this issue Nov 15, 2023
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant