2019-09-22 09:24:18 +02:00
|
|
|
defmodule Mobilizon.Service.ActivityPub.Activity do
|
2019-09-13 01:35:03 +02:00
|
|
|
@moduledoc """
|
|
|
|
Represents an activity.
|
|
|
|
"""
|
|
|
|
|
2019-09-16 02:07:44 +02:00
|
|
|
@type t :: %__MODULE__{
|
|
|
|
data: String.t(),
|
|
|
|
local: boolean,
|
|
|
|
actor: Actor.t(),
|
|
|
|
recipients: [String.t()]
|
|
|
|
# notifications: [???]
|
|
|
|
}
|
|
|
|
|
2019-09-13 01:35:03 +02:00
|
|
|
defstruct [
|
|
|
|
:data,
|
|
|
|
:local,
|
|
|
|
:actor,
|
2019-09-16 02:07:44 +02:00
|
|
|
:recipients
|
|
|
|
# :notifications
|
2019-09-13 01:35:03 +02:00
|
|
|
]
|
|
|
|
end
|