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) @accept Keyword.get(@mrf_policy, :accept)
defp check_accept(actor_info, object) do 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} {:reject, nil}
else else
{:ok, object} {:ok, object}

View file

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