aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-08-07 00:58:48 +0300
committerrinpatch <rinpatch@sdf.org>2019-08-07 00:58:48 +0300
commit5329e84d62bbdf87a4b66e2ba9302a840802416f (patch)
tree0c765ef28fa0b1f53b4aa6dd786d745ecf463717
parent32018a4ee0fab43fc0982e6428d3fb93e5ac3c47 (diff)
downloadpleroma-5329e84d62bbdf87a4b66e2ba9302a840802416f.tar.gz
OStatus tests: stop relying on embedded objects
-rw-r--r--test/web/ostatus/ostatus_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index f8d389020..803a97695 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -199,7 +199,7 @@ defmodule Pleroma.Web.OStatusTest do
assert retweeted_activity.data["type"] == "Create"
assert retweeted_activity.data["actor"] == user.ap_id
assert retweeted_activity.local
- assert retweeted_activity.data["object"]["announcement_count"] == 1
+ assert Object.normalize(retweeted_activity).data["announcement_count"] == 1
end
test "handle incoming retweets - Mastodon, salmon" do