Misc refactoring / tweaks (ThreadMute.exists?/2).

This commit is contained in:
Ivan Tashkinov 2020-03-27 08:01:03 +03:00
commit dfbc05d496
5 changed files with 14 additions and 13 deletions

View file

@ -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])