Merge remote-tracking branch 'remotes/origin/2323-accounts-relationships-hotfix' into output-of-relationships-in-statuses
# Conflicts: # lib/pleroma/web/mastodon_api/views/account_view.ex # lib/pleroma/web/mastodon_api/views/status_view.ex
This commit is contained in:
commit
3fa51f7272
49 changed files with 51 additions and 44 deletions
|
|
@ -209,6 +209,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
|
|||
relationships_opt = UserRelationship.view_relationships_option(user, [other_user])
|
||||
opts = Map.put(opts, :relationships, relationships_opt)
|
||||
assert expected_result == AccountView.render("relationship.json", opts)
|
||||
|
||||
assert [expected_result] ==
|
||||
AccountView.render("relationships.json", %{user: user, targets: [other_user]})
|
||||
end
|
||||
|
||||
@blank_response %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue