From 82225dfc8dbb7bbcf2c9b70a840e7fa8d425dd50 Mon Sep 17 00:00:00 2001 From: squidboi Date: Thu, 7 Jun 2018 22:10:11 -0700 Subject: [PATCH] even more formatting --- lib/pleroma/web/activity_pub/mrf/reject_non_public.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"