mix format
authorVivian Lim <vivlim@pm.me>
Sun, 24 Jun 2018 22:24:41 +0000 (15:24 -0700)
committerVivian Lim <vivlim@pm.me>
Sun, 24 Jun 2018 22:24:41 +0000 (15:24 -0700)
lib/pleroma/web/activity_pub/mrf/simple_policy.ex
test/web/twitter_api/twitter_api_controller_test.exs

index 0a047013a8dd3964e2877da5587946e2b1960475..7fecb8a4f4093cae5ce7c46efa66126d9ef74eac 100644 (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}
index 5fcd23d909f391146307ce8dbe42fe2409e86f0d..3a035e298783024276f4e9abd9c5a09179486e06 100644 (file)
@@ -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)