Misc refactoring / tweaks (ThreadMute.exists?/2).
This commit is contained in:
parent
6b793d3f83
commit
dfbc05d496
5 changed files with 14 additions and 13 deletions
|
|
@ -186,7 +186,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
|
|||
|
||||
describe "relationship" do
|
||||
defp test_relationship_rendering(user, other_user, expected_result) do
|
||||
opts = %{user: user, target: other_user}
|
||||
opts = %{user: user, target: other_user, relationships: nil}
|
||||
assert expected_result == AccountView.render("relationship.json", opts)
|
||||
|
||||
relationships_opt = UserRelationship.view_relationships_option(user, [other_user])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue