mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
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 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
|
|||
%{}
|
||||
end
|
||||
|
||||
features = [
|
||||
features =
|
||||
[
|
||||
"pleroma_api",
|
||||
"mastodon_api",
|
||||
"mastodon_api_streaming",
|
||||
|
@ -86,8 +87,12 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
|
|||
end,
|
||||
if Keyword.get(suggestions, :enabled) do
|
||||
"suggestions"
|
||||
end,
|
||||
if Keyword.get(instance, :allow_relay) do
|
||||
"relay"
|
||||
end
|
||||
]
|
||||
|> Enum.filter(& &1)
|
||||
|
||||
response = %{
|
||||
version: "2.0",
|
||||
|
|
Loading…
Reference in a new issue