Bonfire.Boundaries.API.GraphQLMasto.Adapter (Bonfire v1.0.1-social-alpha.28)
View SourceMutes/Blocks API endpoints for Mastodon-compatible client apps, powered by the GraphQL API
Summary
Functions
Add accounts to a list.
Block an account
List blocked accounts for current user
Build a Mastodon Relationship object by querying actual state. This is used by both block/mute endpoints and the relationships endpoint.
Create a new list.
Delete a list.
Get accounts in a list.
Get the timeline for a list (posts from list members).
Get all lists owned by the authenticated user.
Mute an account
List muted accounts for current user
Remove accounts from a list.
Get a specific list by ID.
Unblock an account
Unmute an account
Update a list (change title).
Functions
Add accounts to a list.
Expects account_ids param with an array of account IDs to add.
Endpoint: POST /api/v1/lists/:id/accounts
Block an account
List blocked accounts for current user
Build a Mastodon Relationship object by querying actual state. This is used by both block/mute endpoints and the relationships endpoint.
Create a new list.
Endpoint: POST /api/v1/lists
Delete a list.
Endpoint: DELETE /api/v1/lists/:id
Get accounts in a list.
Returns an array of Mastodon Account objects for all members of the list.
Endpoint: GET /api/v1/lists/:id/accounts
Get the timeline for a list (posts from list members).
Returns statuses from accounts in the specified list. Delegates to Social adapter's feed function with subject_circles filter.
Endpoint: GET /api/v1/timelines/list/:list_id
Get all lists owned by the authenticated user.
Returns an array of Mastodon List objects. System circles (built-in and stereotypes like followers/blocked) are filtered out, only user-created circles are returned.
Endpoint: GET /api/v1/lists
Mute an account
List muted accounts for current user
Remove accounts from a list.
Expects account_ids param with an array of account IDs to remove.
Endpoint: DELETE /api/v1/lists/:id/accounts
Get a specific list by ID.
Endpoint: GET /api/v1/lists/:id
Unblock an account
Unmute an account
Update a list (change title).
Endpoint: PUT /api/v1/lists/:id