Verified Commit 56d31db1 authored by Haelwenn's avatar Haelwenn
Browse files

Pleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one

parent 8226953f
......@@ -28,6 +28,13 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
stats = Stats.get_stats()
mrf_simple = Application.get_env(:pleroma, :mrf_simple)
mrf_policies =
if(is_list(instance.rewrite_policy)) do
instance.rewrite_policy
else
[instance.rewrite_policy]
end
staff_accounts =
User.moderator_user_query()
|> Repo.all()
......@@ -66,7 +73,11 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
staffAccounts: staff_accounts,
chat: Keyword.get(chat, :enabled),
gopher: Keyword.get(gopher, :enabled),
mrf_simple: Enum.into(mrf_simple, %{})
federation: %{
mrf_policies: mrf_policies,
mrf_simple: mrf_simple,
quarantined_instances: instance.quarantined_instances
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment