Bonfire.Search.API.GraphQLMasto.Adapter (Bonfire v1.0.1-social-alpha.28)
View SourceSearch API endpoints for Mastodon-compatible client apps.
Implements the v2 search endpoint which returns accounts, statuses, and hashtags. This adapter orchestrates search across multiple domains:
- Accounts: via GraphQL user search
- Statuses: delegates to Social adapter for interaction state handling
- Hashtags: via Bonfire.Tag
Endpoint: GET /api/v2/search
Summary
Functions
Search for accounts, statuses, and hashtags.
Functions
Search for accounts, statuses, and hashtags.
Implements Mastodon v2 search endpoint which returns:
- accounts: matching user profiles
- statuses: matching posts
- hashtags: matching tags
Params:
- q: search query string (required)
- type: filter results by type (accounts, statuses, hashtags)
- limit: max results per type (default 20, max 40)
- offset: pagination offset
- resolve: attempt to resolve remote accounts (boolean)
- following: only return accounts the user is following (boolean)
Endpoint: GET /api/v2/search