View Source Mobilizon.Share (Mobilizon v5.0.0-beta.1)

Holds the list of shares made to external actors

Summary

Types

@type t() :: %Mobilizon.Share{
  __meta__: term(),
  actor: Mobilizon.Actors.Actor.t(),
  actor_id: term(),
  id: term(),
  inserted_at: term(),
  owner_actor: term(),
  owner_actor_id: term(),
  updated_at: term(),
  uri: String.t()
}

Functions

Link to this function

create(uri, actor_id, owner_actor_id)

View Source
@spec create(String.t(), integer(), integer()) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
@spec delete_all_by_uri(String.t()) :: {integer(), nil | [term()]}
@spec get(String.t(), integer()) :: Ecto.Schema.t() | nil
Link to this function

get_actors_by_owner_actor_id(actor_id)

View Source
@spec get_actors_by_owner_actor_id(integer()) :: [Ecto.Schema.t()]
Link to this function

get_actors_by_share_uri(uri)

View Source
@spec get_actors_by_share_uri(String.t()) :: [Ecto.Schema.t()]