summaryrefslogtreecommitdiff
path: root/internal/api/model/well-known.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/well-known.go')
-rw-r--r--internal/api/model/well-known.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/api/model/well-known.go b/internal/api/model/well-known.go
index 384361fd0..bf61a6085 100644
--- a/internal/api/model/well-known.go
+++ b/internal/api/model/well-known.go
@@ -79,8 +79,11 @@ type NodeInfoServices struct {
// NodeInfoUsage represents usage information about this server, such as number of users.
type NodeInfoUsage struct {
- Users NodeInfoUsers `json:"users"`
+ Users NodeInfoUsers `json:"users"`
+ LocalPosts int `json:"localPosts"`
}
-// NodeInfoUsers is a stub for usage information, currently empty.
-type NodeInfoUsers struct{}
+// NodeInfoUsers represents aggregate information about the users on the server.
+type NodeInfoUsers struct {
+ Total int `json:"total"`
+}