summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-08-08 15:23:59 -0400
committerMark Felder <feld@feld.me>2024-08-08 15:23:59 -0400
commit5a134a46f7a59eba131c9e484d49e09394e341a8 (patch)
treeb6aade55a362c94f679b39c3b89e437aacb194e1 /test
parentd6cc6aff9b617a50679fe99d1533d2b3d118b656 (diff)
downloadpleroma-5a134a46f7a59eba131c9e484d49e09394e341a8.tar.gz
pleroma-5a134a46f7a59eba131c9e484d49e09394e341a8.zip
We must change to/cc in the activity and inner object
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/activity_pub/mrf/quiet_reply_test.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/mrf/quiet_reply_test.exs b/test/pleroma/web/activity_pub/mrf/quiet_reply_test.exs
index e2b3ce439..35e321fd1 100644
--- a/test/pleroma/web/activity_pub/mrf/quiet_reply_test.exs
+++ b/test/pleroma/web/activity_pub/mrf/quiet_reply_test.exs
@@ -21,6 +21,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.QuietReplyTest do
reply = %{
"type" => "Create",
"actor" => robin.ap_id,
+ "to" => [
+ batman.ap_id,
+ Pleroma.Constants.as_public()
+ ],
+ "cc" => [robin.follower_address],
"object" => %{
"type" => "Note",
"actor" => robin.ap_id,
@@ -39,6 +44,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.QuietReplyTest do
assert {:ok, filtered} = QuietReply.filter(reply)
+ assert expected_to == filtered["to"]
+ assert expected_cc == filtered["cc"]
assert expected_to == filtered["object"]["to"]
assert expected_cc == filtered["object"]["cc"]
end
@@ -52,6 +59,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.QuietReplyTest do
reply = %{
"type" => "Create",
"actor" => robin.ap_id,
+ "to" => [batman.ap_id],
+ "cc" => [],
"object" => %{
"type" => "Note",
"actor" => robin.ap_id,
@@ -76,6 +85,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.QuietReplyTest do
reply = %{
"type" => "Create",
"actor" => robin.ap_id,
+ "to" => [batman.ap_id, robin.follower_address],
+ "cc" => [],
"object" => %{
"type" => "Note",
"actor" => robin.ap_id,