debianize-mobilizon/lib/service/activity_pub/activity.ex
Thomas Citharel 5b4f1c271a
Send email notifications when a participation is approved/rejected
Also handles participant status :rejected instead of deleting the
participation

Closes #164

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-30 18:45:29 +02:00

20 lines
329 B
Elixir

defmodule Mobilizon.Service.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