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

Follow people

Summary

Functions

Make an actor follow another, using an activity of type Follow

Make an actor unfollow another, using an activity of type Undo a Follow.

Functions

Link to this function

follow(follower, followed, activity_id \\ nil, local \\ true, additional \\ %{})

View Source
@spec follow(
  Mobilizon.Actors.Actor.t(),
  Mobilizon.Actors.Actor.t(),
  String.t() | nil,
  boolean(),
  map()
) ::
  {:ok, Activity.t(), Mobilizon.Actors.Follower.t()}
  | {:error, atom() | Ecto.Changeset.t() | String.t()}

Make an actor follow another, using an activity of type Follow

Link to this function

unfollow(follower, followed, activity_id \\ nil, local \\ true)

View Source
@spec unfollow(
  Mobilizon.Actors.Actor.t(),
  Mobilizon.Actors.Actor.t(),
  String.t() | nil,
  boolean()
) ::
  {:ok, Activity.t(), Mobilizon.Actors.Follower.t()} | {:error, String.t()}

Make an actor unfollow another, using an activity of type Undo a Follow.