View Source Mobilizon.Federation.ActivityStream.Converter.Utils (Mobilizon v5.0.0-beta.1)

Various utils for converters.

Summary

Functions

Link to this function

build_mentions(mentions)

View Source
@spec build_tags([Mobilizon.Events.Tag.t()]) :: [map()]
@spec fetch_actor(String.t() | map()) ::
  {:ok, Mobilizon.Actors.Actor.t()} | {:error, atom()}
Link to this function

fetch_mentions(mentions)

View Source
@spec fetch_mentions([map()]) :: [map()]
@spec fetch_tags([String.t()]) :: [Mobilizon.Events.Tag.t()]
Link to this function

get_address(text_address)

View Source
@spec get_address(map() | binary() | nil) :: Mobilizon.Addresses.Address.t() | nil
@spec get_medias([map()]) :: {map(), [map()]}
Link to this function

maybe_fetch_actor_and_attributed_to_id(arg1)

View Source
@spec maybe_fetch_actor_and_attributed_to_id(map()) ::
  {:ok, Mobilizon.Actors.Actor.t(), Mobilizon.Actors.Actor.t() | nil}
  | {:error, atom()}
Link to this function

process_pictures(object, actor_id)

View Source
@spec process_pictures(map(), integer()) :: Keyword.t()
@spec visibility_public?(String.t() | [String.t()]) :: boolean()