View Source Mobilizon.Federation.ActivityPub.Actions.Update (Mobilizon v4.1.0-alpha.1)
Update things
Summary
Functions
Create an activity of type Update
Functions
@spec update(Entity.t(), map(), boolean(), map()) :: {:ok, Mobilizon.Federation.ActivityPub.Activity.t(), Entity.t()} | {:error, atom() | Ecto.Changeset.t()}
Create an activity of type Update
- Updates the object, which returns AS data
- Wraps ActivityStreams data into a
Update
activity - Creates an
Mobilizon.Federation.ActivityPub.Activity
from this - Federates (asynchronously) the activity
- Returns the activity