Commit 2b7b1b3e authored by Hakaba Hitoyo's avatar Hakaba Hitoyo
Browse files

add suggestionsThirdPartyEngine into /nodeinfo/2.0.json

parent d76f0d87
Pipeline #2802 passed with stages
in 4 minutes and 56 seconds
......@@ -21,6 +21,7 @@ def schemas(conn, _params) do
def nodeinfo(conn, %{"version" => "2.0"}) do
instance = Application.get_env(:pleroma, :instance)
media_proxy = Application.get_env(:pleroma, :media_proxy)
suggestions = Application.get_env(:pleroma, :suggestions)
stats = Stats.get_stats()
response = %{
......@@ -43,7 +44,8 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
},
metadata: %{
nodeName: Keyword.get(instance, :name),
mediaProxy: Keyword.get(media_proxy, :enabled)
mediaProxy: Keyword.get(media_proxy, :enabled),
suggestionsThirdPartyEngine: Keyword.get(@suggestions, :third_party_engine, false)
}
}
......
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