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 @@ def prepare_one(%{inbox: inbox, activity_id: activity_id} = params) do
{:ok, data} = Transmogrifier.prepare_outgoing(activity.data)
cc = Map.get(params, :cc)
cc = Map.get(params, :cc, [])
json =
data