forked from AkkomaGang/akkoma
Add localPosts count, also set to 0 if null
This commit is contained in:
parent
abeb009acc
commit
b8789cc8b6
1 changed files with 3 additions and 2 deletions
|
@ -36,8 +36,9 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
|
||||||
openRegistrations: Keyword.get(@instance, :registrations_open),
|
openRegistrations: Keyword.get(@instance, :registrations_open),
|
||||||
usage: %{
|
usage: %{
|
||||||
users: %{
|
users: %{
|
||||||
total: Stats.get_stats().user_count
|
total: Stats.get_stats().user_count || 0
|
||||||
}
|
},
|
||||||
|
localPosts: Stats.get_stats().status_count || 0
|
||||||
},
|
},
|
||||||
metadata: %{}
|
metadata: %{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue