Reduce OP fetching queries.
This commit is contained in:
parent
ff7afe46b9
commit
37e5014d3e
3 changed files with 46 additions and 11 deletions
|
|
@ -59,7 +59,13 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|||
user = insert(:user)
|
||||
{:ok, activity} = CommonAPI.post(user, %{"status" => "he", "in_reply_to_status_id" => note.id})
|
||||
|
||||
assert activity.data["object"]["inReplyTo"] == note.data["object"]["id"]
|
||||
status = StatusView.render("status.json", %{activity: activity})
|
||||
|
||||
assert status.in_reply_to_id == note.id
|
||||
|
||||
[status] = StatusView.render("index.json", %{activities: [activity], as: :activity})
|
||||
|
||||
assert status.in_reply_to_id == note.id
|
||||
end
|
||||
|
||||
test "contains mentions" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue