CPub.User.Outbox (CPub v0.3.0) View Source

A CPub.Users outbox that can be used to post ActivityStream activities.

Link to this section Summary

Functions

Get activities of actor.

Post activity in graph on behalf of actor.

Link to this section Types

Specs

recipients_map() :: %{required(RDF.IRI.t()) => RDF.Statement.object()}

Link to this section Functions

Specs

get(CPub.User.t()) :: {:ok, MapSet.t()} | {:error, any()}

Get activities of actor.

Link to this function

merge_recipients(recipients1, recipients2)

View Source

Specs

merge_recipients(recipients_map(), recipients_map()) :: recipients_map()

Specs

post(CPub.User.t(), RDF.Graph.t()) ::
  {:ok, {ERIS.ReadCapability.t(), map()}} | {:error, any()}

Post activity in graph on behalf of actor.