Nodeinfo: remove null features; relay feature.

This commit is contained in:
href 2018-12-07 19:44:45 +01:00
parent 94d8f1ab30
commit 134cc94cbd
No known key found for this signature in database
GPG key ID: EE8296C1A152C325

View file

@ -71,7 +71,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
%{} %{}
end end
features = [ features =
[
"pleroma_api", "pleroma_api",
"mastodon_api", "mastodon_api",
"mastodon_api_streaming", "mastodon_api_streaming",
@ -86,8 +87,12 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController 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",