Bonfire.Social.API.GraphQLMasto.Adapter (Bonfire v1.0.1-social-alpha.28)

View Source

Social API endpoints for Mastodon-compatible client apps, powered by the GraphQL API (see Bonfire.Social.API.GraphQL)

Summary

Functions

bookmark_status(params, conn)

boost_status(params, conn)

clear_notifications(conn)

Clear all notifications for the current user

create_report(params, conn)

Create a new report (flag).

Implements POST /api/v1/reports

delete_status(map, conn)

Delete a status

dismiss_notification(id, conn)

Dismiss a single notification

favourites(params, conn)

Get posts favourited/liked by the current user

feed(params, conn)

graphql(conn_or_socket, name \\ nil, params \\ %{})

like_status(params, conn)

list_reports(params, conn)

List reports created by the current user.

Implements GET /api/v1/reports

liveql(socket, name \\ nil, params \\ %{})

notification(id, conn)

Get a single notification by ID

notifications(params, conn)

search_activities_gql(params, conn)

search_statuses_for_api(query, opts, conn)

Search for statuses/posts, called by the Search adapter.

search_users_gql(params, conn)

show_report(map, conn)

Get a specific report by ID.

Implements GET /api/v1/reports/:id

show_status(map, conn)

Get single status by ID

status_context(map, conn)

Get thread context (ancestors and descendants)

status_favourited_by(map, conn)

status_reblogged_by(map, conn)

unbookmark_status(params, conn)

unboost_status(params, conn)

unlike_status(params, conn)