summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-08-07 00:58:48 +0300
committerAriadne Conill <ariadne@dereferenced.org>2019-08-14 01:50:22 +0000
commitf0c32364b7678ce9c234f2df994b9107c922a23d (patch)
tree893a44ed1b595ef0bc537f9dfe5dee0875de8154
parente5161961bdf41a0c0a6f051940b31c0b4f258473 (diff)
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 77bccdaa1..41cf188ca 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -196,7 +196,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