From 5b9e1f228ae21cc1749914d375bb3644e8048df4 Mon Sep 17 00:00:00 2001 From: squidboi Date: Thu, 7 Jun 2018 21:55:58 -0700 Subject: [PATCH] formatting --- .../web/activity_pub/mrf/reject_non_public.ex | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 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 eb9580445..9719a48d5 100644 --- a/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex +++ b/lib/pleroma/web/activity_pub/mrf/reject_non_public.ex @@ -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 -- 2.45.2