View Source Mobilizon.Federation.ActivityPub.Refresher (Mobilizon v5.0.0-beta.1)

Module that provides functions to explore and fetch collections on a group

Summary

Types

@type fetch_actor_errors() ::
  Mobilizon.Federation.ActivityPub.Actor.make_actor_errors()
  | fetch_collection_errors()

Functions

Link to this function

fetch_collection(collection_url, on_behalf_of)

View Source
@spec fetch_collection(String.t() | nil, any()) ::
  :ok | {:error, fetch_collection_errors()}
Link to this function

fetch_element(url, on_behalf_of)

View Source
@spec fetch_element(String.t(), Mobilizon.Actors.Actor.t()) ::
  {:ok, struct()} | {:error, any()}
Link to this function

fetch_group(group_url, on_behalf_of)

View Source
@spec fetch_group(String.t(), Mobilizon.Actors.Actor.t()) ::
  :ok | {:error, fetch_actor_errors()}
Link to this function

refresh_all_external_groups()

View Source
@spec refresh_all_external_groups() :: :ok
@spec refresh_profile(Mobilizon.Actors.Actor.t()) ::
  {:ok, Mobilizon.Actors.Actor.t()} | {:error, fetch_actor_errors()} | {:error}

Refresh a remote profile