alias Pleroma.Web.Feed.FeedView
def feed(conn, params) do
- if Pleroma.Config.get!([:instance, :public]) do
+ unless Pleroma.Config.restrict_unauthenticated_access?(:activities, :local) do
render_feed(conn, params)
else
render_error(conn, :not_found, "Not found")
end
def feed(conn, params) do
- if Pleroma.Config.get!([:instance, :public]) do
+ unless Pleroma.Config.restrict_unauthenticated_access?(:profiles, :local) do
render_feed(conn, params)
else
errors(conn, {:error, :not_found})
end
defp activated_providers do
- if Pleroma.Config.get!([:instance, :public]) do
+ unless Pleroma.Config.restrict_unauthenticated_access?(:activities, :local) do
Pleroma.Config.get([__MODULE__, :providers], [])
else
[]