mobilizon/lib/federation/activity_pub/activity.ex
2020-01-22 02:14:42 +01:00

20 lines
332 B
Elixir

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