2d087fb810
It's only used for ActivityPub stuff, nothing DB related. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
22 lines
383 B
Elixir
22 lines
383 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()]
|
|
# notifications: [???]
|
|
}
|
|
|
|
defstruct [
|
|
:data,
|
|
:local,
|
|
:actor,
|
|
:recipients
|
|
# :notifications
|
|
]
|
|
end
|