mix format
This commit is contained in:
parent
1299bccc7d
commit
6160a1b3c0
@ -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}
|
||||
|
@ -504,6 +504,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user