From 990cde74396e0797c16f77978621ccf383846e15 Mon Sep 17 00:00:00 2001 From: squidboi Date: Thu, 7 Jun 2018 22:03:24 -0700 Subject: [PATCH] more formatting --- .../web/activity_pub/mrf/reject_non_public.ex | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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 9719a48d5..c1d25f488 100644 --- a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex +++ b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex @@ -10,20 +10,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do #Determine visibility visibility = cond do - #Public - public in object["to"] -> "p" - #Unlisted - public in object["cc"] -> "u" - #Followers-only - user.follower_address in object["to"] -> "f" - #Direct - true -> "d" + public in object["to"] -> "public" + public in object["cc"] -> "unlisted" + user.follower_address in object["to"] -> "followers" + true -> "direct" end {flag, object_out} = case visibility do - "p" -> {:ok, object} - "u" -> {:ok, object} + "public" -> {:ok, object} + "unlisted" -> {:ok, object} _ -> {:reject, nil} end -- 2.45.2