View Source Mobilizon.Federation.ActivityPub (Mobilizon v4.1.0-alpha.1)

The ActivityPub context.

Summary

Functions

Fetch an object from an URL, from our local database of events and comments, then eventually remote

Return all public activities (events & comments) for an actor

Functions

Link to this function

fetch_object_from_url(url, options \\ [])

View Source
@spec fetch_object_from_url(String.t(), Keyword.t()) ::
  {:ok, struct()} | {:ok, atom(), struct()} | {:error, any()}

Fetch an object from an URL, from our local database of events and comments, then eventually remote

Link to this function

fetch_public_activities_for_actor(actor, page \\ 1, limit \\ 10)

View Source
@spec fetch_public_activities_for_actor(
  Mobilizon.Actors.Actor.t(),
  pos_integer(),
  pos_integer()
) ::
  map()

Return all public activities (events & comments) for an actor