From: squidboi Date: Fri, 8 Jun 2018 05:10:11 +0000 (-0700) Subject: even more formatting X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=82225dfc8dbb7bbcf2c9b70a840e7fa8d425dd50;p=akkoma even more formatting --- diff --git a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex index c1d25f488..e3fcc4447 100644 --- a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex +++ b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex @@ -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"