Commit 29b5e30c authored by kaniini's avatar kaniini
Browse files

activity: drop recipients_to/recipients_cc fields

parent 038139d6
......@@ -8,8 +8,6 @@ defmodule Pleroma.Activity do
field(:local, :boolean, default: true)
field(:actor, :string)
field(:recipients, {:array, :string})
field(:recipients_to, {:array, :string})
field(:recipients_cc, {:array, :string})
has_many(:notifications, Notification, on_delete: :delete_all)
......@@ -60,16 +60,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
:ok <- check_actor_is_active(map["actor"]),
{:ok, map} <- MRF.filter(map),
:ok <- insert_full_object(map) do
{recipients, recipients_to, recipients_cc} = get_recipients(map)
{recipients, _, _} = get_recipients(map)
{:ok, activity} =
data: map,
local: local,
actor: map["actor"],
recipients: recipients,
recipients_to: recipients_to,
recipients_cc: recipients_cc
recipients: recipients
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment