Force cc to an empty list if undefined

This commit is contained in:
Mark Felder 2024-08-06 12:00:50 -04:00
parent 30eef434a9
commit 83fcf42c70

View file

@ -91,7 +91,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
{:ok, data} = Transmogrifier.prepare_outgoing(activity.data) {:ok, data} = Transmogrifier.prepare_outgoing(activity.data)
cc = Map.get(params, :cc) cc = Map.get(params, :cc, [])
json = json =
data data