projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990cde7
)
even more formatting
author
squidboi
<squidboi@waifu.club>
Fri, 8 Jun 2018 05:10:11 +0000
(22:10 -0700)
committer
squidboi
<squidboi@waifu.club>
Fri, 8 Jun 2018 05:10:11 +0000
(22:10 -0700)
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
patch
|
blob
|
history
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 c1d25f48857536a7446ede9e7ba425963d76f812..e3fcc44472b15f408b8baf6785394feaf3b04477 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
@@
-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"