[#1505] Fixed replies serialization (included objects' ids instead of activities' ids).
This commit is contained in:
parent
4e6bbdc7b5
commit
7c3991f59e
5 changed files with 32 additions and 29 deletions
|
|
@ -2133,7 +2133,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
|||
})
|
||||
|
||||
object = Object.normalize(activity)
|
||||
replies_uris = Enum.map([self_reply1, self_reply2], fn a -> a.data["id"] end)
|
||||
replies_uris = Enum.map([self_reply1, self_reply2], fn a -> a.object.data["id"] end)
|
||||
|
||||
assert %{
|
||||
"type" => "Collection",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue