[Pleroma.Web.Nodeinfo.NodeinfoController]: Simplify features strings
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 7 Sep 2018 00:45:26 +0000 (02:45 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 25 Oct 2018 23:06:34 +0000 (01:06 +0200)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index b95e12aedbe8abd5673303801306dac957da2868..59b0ce3e15754af2bb699641a52417c7de3d86ef 100644 (file)
@@ -64,8 +64,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
       end
 
     features = [
-      "pleroma_api_socket",
-      "mastodon_api_socket",
+      "pleroma_api",
+      "mastodon_api",
       "mastodon_api_streaming",
       if Keyword.get(media_proxy, :enabled) do
         "media_proxy"
@@ -74,10 +74,10 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         "gopher"
       end,
       if Keyword.get(chat, :enabled) do
-        "pleroma_api_chat"
+        "chat"
       end,
       if Keyword.get(suggestions, :enabled) do
-        "3rdparty_suggestions"
+        "suggestions"
       end
     ]
 
@@ -112,8 +112,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         },
         staffAccounts: staff_accounts,
         federation: federation_response,
-        postFormats: Keyword.get(instance, :allowed_post_formats)
-        features: features,
+        postFormats: Keyword.get(instance, :allowed_post_formats),
+        features: features
       }
     }