Verified Commit b8789cc8 authored by dashie's avatar dashie
Browse files

Add localPosts count, also set to 0 if null

parent abeb009a
......@@ -36,8 +36,9 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
openRegistrations: Keyword.get(@instance, :registrations_open),
usage: %{
users: %{
total: Stats.get_stats().user_count
}
total: Stats.get_stats().user_count || 0
},
localPosts: Stats.get_stats().status_count || 0
},
metadata: %{}
}
......
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