ActivityPub.C2S (Bonfire v1.0.0-social-rc.3.22)
View SourceFormats ActivityPub Client-to-Server activities into Bonfire's internal format.
Handles the translation between ActivityPub JSON-LD activities and the format expected by Bonfire's internal modules like Posts, Likes, etc.
Summary
Functions
Formats an ActivityPub activity for processing by Bonfire modules.
Handles POST requests to /actors/:username/outbox for C2S API.
Functions
Formats an ActivityPub activity for processing by Bonfire modules.
Returns {:ok, activity_type, formatted_attrs} or {:error, reason}.
Handles POST requests to /actors/:username/outbox for C2S API.
Validates the authenticated user matches the actor, formats the ActivityPub activity, and delegates to appropriate Bonfire modules.