projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ActivityPubControllerTest: Apply same addr changes to object
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
utils.ex
diff --git
a/lib/pleroma/web/activity_pub/utils.ex
b/lib/pleroma/web/activity_pub/utils.ex
index a4dc469dccc38c3b04ef805707eb3e6d7b2d2617..e81623d833817cd5bb9c8c5bc2cd9ece92b401f1 100644
(file)
--- a/
lib/pleroma/web/activity_pub/utils.ex
+++ b/
lib/pleroma/web/activity_pub/utils.ex
@@
-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