View Source Mobilizon.Service.Export.Common (Mobilizon v4.1.0-alpha.1)

Common tools for exportation

Summary

Functions

Link to this function

fetch_actor_event_feed(name, limit)

View Source
@spec fetch_actor_event_feed(String.t(), integer()) ::
  {:ok, Mobilizon.Actors.Actor.t(), [Mobilizon.Events.Event.t()],
   [Mobilizon.Posts.Post.t()]}
  | {:error, :actor_not_public | :actor_not_found}
Link to this function

fetch_events_from_token(token, limit)

View Source
@spec fetch_events_from_token(String.t(), integer()) ::
  token_feed_data() | {:error, :bad_token | :token_not_found}
Link to this function

fetch_instance_public_content(limit)

View Source
@spec fetch_instance_public_content(integer()) ::
  {:ok, [Mobilizon.Events.Event.t()], [Mobilizon.Posts.Post.t()]}