Skip to content
Snippets Groups Projects
Verified Commit 82225dfc authored by squidboi's avatar squidboi
Browse files

even more formatting

parent 990cde74
Branches
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment