final format

This commit is contained in:
squidboi 2018-06-07 22:14:39 -07:00
parent 82225dfc8d
commit 6e7f91bf8f
No known key found for this signature in database
GPG Key ID: 018925A9B65D2457
1 changed files with 5 additions and 8 deletions

View File

@ -17,14 +17,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
true -> "direct"
end
{flag, object_out} =
case visibility do
"public" -> {:ok, object}
"unlisted" -> {:ok, object}
_ -> {:reject, nil}
end
{flag, object_out}
case visibility do
"public" -> {:ok, object}
"unlisted" -> {:ok, object}
_ -> {:reject, nil}
end
else
{:ok, object}
end