summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/views
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-02-09 10:17:21 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-02-09 10:17:21 +0300
commit7c3991f59eccc47551257dfe41817e71d0eb6717 (patch)
tree1f3b2b88a46100e850469ec4ebb66c982b16c1df /test/web/activity_pub/views
parent4e6bbdc7b549e630141cb10d383a42055f06dc16 (diff)
downloadpleroma-7c3991f59eccc47551257dfe41817e71d0eb6717.tar.gz
pleroma-7c3991f59eccc47551257dfe41817e71d0eb6717.zip
[#1505] Fixed `replies` serialization (included objects' ids instead of activities' ids).
Diffstat (limited to 'test/web/activity_pub/views')
-rw-r--r--test/web/activity_pub/views/object_view_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/activity_pub/views/object_view_test.exs b/test/web/activity_pub/views/object_view_test.exs
index 6784788cc..a9197b0c5 100644
--- a/test/web/activity_pub/views/object_view_test.exs
+++ b/test/web/activity_pub/views/object_view_test.exs
@@ -48,8 +48,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
{:ok, self_reply1} =
CommonAPI.post(user, %{"status" => "self-reply 1", "in_reply_to_status_id" => activity.id})
+ replies_uris = [self_reply1.object.data["id"]]
result = ObjectView.render("object.json", %{object: refresh_record(activity)})
- replies_uris = [self_reply1.data["id"]]
assert %{
"type" => "Collection",