projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69d38e
)
formatting
author
squidboi
<squidboi@waifu.club>
Fri, 8 Jun 2018 04:55:58 +0000
(21:55 -0700)
committer
squidboi
<squidboi@waifu.club>
Fri, 8 Jun 2018 04:55:58 +0000
(21:55 -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 eb9580445c0c5cfab7cfc1e80036fb9001db3b2d..9719a48d575d17de171fa28c51c620b80bb971bc 100644
(file)
--- 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