mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 22:49:25 +00:00
Add localPosts count, also set to 0 if null
This commit is contained in:
parent
abeb009acc
commit
b8789cc8b6
|
@ -36,8 +36,9 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController 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: %{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue