debianize-mobilizon/lib/federation/activity_pub/activity.ex
Thomas Citharel 75e254d8b4
Actor suspension refactoring
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-09-26 17:52:23 +02:00

20 lines
327 B
Elixir

defmodule Mobilizon.Federation.ActivityPub.Activity do
@moduledoc """
Represents an activity.
"""
@type t :: %__MODULE__{
data: map(),
local: boolean,
actor: Actor.t(),
recipients: [String.t()]
}
defstruct [
:data,
:local,
:actor,
:recipients
]
end