summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/utils_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-11-14 16:39:45 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-11-14 16:39:45 +0700
commit3c0abfca53751624ebd6ea7174ee880d9e7b29e7 (patch)
treeba16c5af44532a9b76640f1f48651c90d1be8a6f /test/web/activity_pub/utils_test.exs
parent768c1a5de172151beb34e6dda13d4fb05e05ed87 (diff)
parent6085c71bd17e2b676e0820bf3fd93f81a1902ac3 (diff)
downloadpleroma-3c0abfca53751624ebd6ea7174ee880d9e7b29e7.tar.gz
pleroma-3c0abfca53751624ebd6ea7174ee880d9e7b29e7.zip
Merge remote-tracking branch 'upstream/develop' into feature/move-activity
Diffstat (limited to 'test/web/activity_pub/utils_test.exs')
-rw-r--r--test/web/activity_pub/utils_test.exs11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/web/activity_pub/utils_test.exs b/test/web/activity_pub/utils_test.exs
index c1b000fac..586eb1d2f 100644
--- a/test/web/activity_pub/utils_test.exs
+++ b/test/web/activity_pub/utils_test.exs
@@ -10,6 +10,7 @@ defmodule Pleroma.Web.ActivityPub.UtilsTest do
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.Utils
+ alias Pleroma.Web.AdminAPI.AccountView
alias Pleroma.Web.CommonAPI
import Pleroma.Factory
@@ -581,11 +582,19 @@ defmodule Pleroma.Web.ActivityPub.UtilsTest do
%{}
)
+ note_obj = %{
+ "type" => "Note",
+ "id" => activity_ap_id,
+ "content" => content,
+ "published" => activity.object.data["published"],
+ "actor" => AccountView.render("show.json", %{user: target_account})
+ }
+
assert %{
"type" => "Flag",
"content" => ^content,
"context" => ^context,
- "object" => [^target_ap_id, ^activity_ap_id],
+ "object" => [^target_ap_id, ^note_obj],
"state" => "open"
} = res
end