feat: nodeinfoのusageを文字から数字に

This commit is contained in:
usbharu 2025-02-25 00:03:02 +09:00
parent 4c026fb243
commit 5ac1e3b267
Signed by: usbharu
GPG Key ID: 8CB1087135660B8D
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ data class Nodeinfo2_0(
)
data class NodeinfoUsage(
val users: Map<String, String>,
val users: Map<String, Long>,
val localPosts: Long,
)

View File

@ -29,7 +29,7 @@ class NodeinfoApplicationService(
protocol = listOf("activitypub"),
NodeinfoUsage(
users = mapOf(
"total" to "0", "activeMonth" to "0", "activeHalfyear" to "0"
"total" to 0, "activeMonth" to 0, "activeHalfyear" to 0
), localPosts = 0
),
openRegistration = applicationConfig.private.not(),