Add metadata.nodeName
authorDashie <dashie@sigpipe.me>
Thu, 3 May 2018 08:52:20 +0000 (10:52 +0200)
committerDashie <dashie@sigpipe.me>
Thu, 3 May 2018 08:52:20 +0000 (10:52 +0200)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 534a858ae95ae70433bb8db6266a4f9cb1d6d787..83ad4f284815997cf4edd86e7ebc230cbe5be514 100644 (file)
@@ -40,7 +40,9 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         },
         localPosts: Stats.get_stats().status_count || 0
       },
-      metadata: %{}
+      metadata: %{
+        nodeName: Keyword.get(@instance, :name)
+      }
     }
 
     conn