Pleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one
This commit is contained in:
parent
8226953f1d
commit
56d31db130
@ -28,6 +28,13 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
|
|||||||
stats = Stats.get_stats()
|
stats = Stats.get_stats()
|
||||||
mrf_simple = Application.get_env(:pleroma, :mrf_simple)
|
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 =
|
staff_accounts =
|
||||||
User.moderator_user_query()
|
User.moderator_user_query()
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
@ -66,7 +73,11 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
|
|||||||
staffAccounts: staff_accounts,
|
staffAccounts: staff_accounts,
|
||||||
chat: Keyword.get(chat, :enabled),
|
chat: Keyword.get(chat, :enabled),
|
||||||
gopher: Keyword.get(gopher, :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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user