ActivityPub.C2S (Bonfire v1.0.1-social-alpha.28)

View Source

Handles ActivityPub Client-to-Server (C2S) protocol.

Processes incoming C2S activities by validating the authenticated actor, preparing the activity data, and routing through the standard ActivityPub processing pipeline via Transformer.handle_incoming.

Summary

Functions

Handles POST requests to /actors/:username/outbox for C2S API.

Wraps a bare object (like a Note) in a Create activity if needed.

Functions

handle_c2s_activity(conn, params)

Handles POST requests to /actors/:username/outbox for C2S API.

Validates the authenticated user matches the actor, prepares the activity, and routes through Transformer.handle_incoming with local: true.

maybe_wrap_object_in_create(params)

Wraps a bare object (like a Note) in a Create activity if needed.