mix format

This commit is contained in:
Vivian Lim 2018-06-24 15:24:41 -07:00
parent 1299bccc7d
commit 6160a1b3c0
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
@accept Keyword.get(@mrf_policy, :accept)
defp check_accept(actor_info, object) do
if length(@accept) > 0 and not actor_info.host in @accept do
if length(@accept) > 0 and not (actor_info.host in @accept) do
{:reject, nil}
else
{:ok, object}

View File

@ -504,6 +504,7 @@ test "unimplemented mutes with credentials", %{conn: conn, user: current_user} d
conn
|> with_credentials(current_user.nickname, "test")
|> get("/api/qvitter/mutes.json")
current_user = Repo.get(User, current_user.id)
assert [] = json_response(conn, 200)