Merge branch 'fix/nodeinfo-nil-features' into 'develop'
Nodeinfo: remove null features; relay feature. See merge request pleroma/pleroma!520
This commit is contained in:
commit
beadeaffa1
|
@ -71,7 +71,8 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
|
||||||
%{}
|
%{}
|
||||||
end
|
end
|
||||||
|
|
||||||
features = [
|
features =
|
||||||
|
[
|
||||||
"pleroma_api",
|
"pleroma_api",
|
||||||
"mastodon_api",
|
"mastodon_api",
|
||||||
"mastodon_api_streaming",
|
"mastodon_api_streaming",
|
||||||
|
@ -86,8 +87,12 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
|
||||||
end,
|
end,
|
||||||
if Keyword.get(suggestions, :enabled) do
|
if Keyword.get(suggestions, :enabled) do
|
||||||
"suggestions"
|
"suggestions"
|
||||||
|
end,
|
||||||
|
if Keyword.get(instance, :allow_relay) do
|
||||||
|
"relay"
|
||||||
end
|
end
|
||||||
]
|
]
|
||||||
|
|> Enum.filter(& &1)
|
||||||
|
|
||||||
response = %{
|
response = %{
|
||||||
version: "2.0",
|
version: "2.0",
|
||||||
|
|
Loading…
Reference in New Issue