Add metadata.nodeName

This commit is contained in:
Dashie 2018-05-03 10:52:20 +02:00
parent 804497542d
commit 724f096ac7
No known key found for this signature in database
GPG Key ID: C2D57B325840B755
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
}, },
localPosts: Stats.get_stats().status_count || 0 localPosts: Stats.get_stats().status_count || 0
}, },
metadata: %{} metadata: %{
nodeName: Keyword.get(@instance, :name)
}
} }
conn conn