ActivityPubControllerTest: Apply same addr changes to object

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-09-15 18:18:57 +02:00
commit d1205406d9
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
2 changed files with 26 additions and 9 deletions

View file

@ -97,7 +97,10 @@ defmodule Pleroma.Web.ActivityPub.Utils do
if need_splice? do
cc_list = extract_list(params["cc"])
Map.put(params, "cc", [ap_id | cc_list])
params
|> Map.put("cc", [ap_id | cc_list])
|> Kernel.put_in(["object", "cc"], [ap_id | cc_list])
else
params
end