even more formatting

This commit is contained in:
squidboi 2018-06-07 22:10:11 -07:00
parent 990cde7439
commit 82225dfc8d
No known key found for this signature in database
GPG Key ID: 018925A9B65D2457

View File

@ -2,12 +2,13 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
alias Pleroma.User alias Pleroma.User
@behaviour Pleroma.Web.ActivityPub.MRF @behaviour Pleroma.Web.ActivityPub.MRF
@impl true
def filter(object) do def filter(object) do
if object["type"] == "Create" do if object["type"] == "Create" do
user = User.get_by_ap_id(object["actor"]) user = User.get_by_ap_id(object["actor"])
public = "https://www.w3.org/ns/activitystreams#Public" public = "https://www.w3.org/ns/activitystreams#Public"
#Determine visibility # Determine visibility
visibility = visibility =
cond do cond do
public in object["to"] -> "public" public in object["to"] -> "public"