formatting
authorsquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 04:55:58 +0000 (21:55 -0700)
committersquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 04:55:58 +0000 (21:55 -0700)
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex

index eb9580445c0c5cfab7cfc1e80036fb9001db3b2d..9719a48d575d17de171fa28c51c620b80bb971bc 100644 (file)
@@ -20,14 +20,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
           true -> "d"
         end
 
-      case visibility do
-        "p" -> {:ok, object}
-        "u" -> {:ok, object}
-        _ -> {:reject, nil}
-      end
+      {flag, object_out} =
+        case visibility do
+          "p" -> {:ok, object}
+          "u" -> {:ok, object}
+          _ -> {:reject, nil}
+        end
+
+      {flag, object_out}
     else
       {:ok, object}
     end
   end
-
 end