summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/utils_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-11-04 14:11:44 +0000
committerlain <lain@soykaf.club>2019-11-04 14:11:44 +0000
commit556da9290217823ac8a6f4cecfda2186a4d6985d (patch)
treef837914d84e7ae41c3de76ba9f5d50f40494f794 /test/web/activity_pub/utils_test.exs
parentbab786cd935e37a74483d090fdfbb283764d83fe (diff)
parentd56bc622755ea0a858bf086bc1f525c1752e4db8 (diff)
downloadpleroma-556da9290217823ac8a6f4cecfda2186a4d6985d.tar.gz
pleroma-556da9290217823ac8a6f4cecfda2186a4d6985d.zip
Merge branch 'feature/store-statuses-data-inside-flag' into 'develop'
Store status data inside flag activity See merge request pleroma/pleroma!1849
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