Function notedealer::activitypub::activity_broker::receive
source · [−]pub async fn receive(
activity: Object<'_>,
db: &Database,
remote: &RemoteAccessor,
local: bool
) -> Result<(), ActivityBrokeringError>Expand description
Adds the activity to the database, and applies any side effects it has.
Called from both http_api::users::post_inbox and
http_api::users::post_outbox.