final format
authorsquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:14:39 +0000 (22:14 -0700)
committersquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:14:39 +0000 (22:14 -0700)
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex

index e3fcc44472b15f408b8baf6785394feaf3b04477..fe257214ea82d2ba270e1b2cc83c5152a1e2746b 100644 (file)
@@ -17,14 +17,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
           true -> "direct"
         end
 
-      {flag, object_out} =
-        case visibility do
-          "public" -> {:ok, object}
-          "unlisted" -> {:ok, object}
-          _ -> {:reject, nil}
-        end
-
-      {flag, object_out}
+      case visibility do
+        "public" -> {:ok, object}
+        "unlisted" -> {:ok, object}
+        _ -> {:reject, nil}
+      end
     else
       {:ok, object}
     end