even more formatting
authorsquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:10:11 +0000 (22:10 -0700)
committersquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:10:11 +0000 (22:10 -0700)
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex

index c1d25f48857536a7446ede9e7ba425963d76f812..e3fcc44472b15f408b8baf6785394feaf3b04477 100644 (file)
@@ -2,12 +2,13 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
   alias Pleroma.User
   @behaviour Pleroma.Web.ActivityPub.MRF
 
+  @impl true
   def filter(object) do
     if object["type"] == "Create" do
       user = User.get_by_ap_id(object["actor"])
       public = "https://www.w3.org/ns/activitystreams#Public"
 
-      #Determine visibility
+      # Determine visibility
       visibility =
         cond do
           public in object["to"] -> "public"