[O] Limit activity count

This commit is contained in:
Azalea
2025-01-17 10:18:22 -05:00
parent deb923fcfd
commit 762f0ef445
2 changed files with 3 additions and 7 deletions

View File

@@ -47,8 +47,8 @@ fun Maimai2ServletController.initApis() {
"GetUserActivity" {
db.userAct.findByUser_Card_ExtId(uid).let { act -> mapOf(
"userActivity" to mapOf(
"playList" to act.filter { it.kind == 1 },
"musicList" to act.filter { it.kind == 2 }
"playList" to act.filter { it.kind == 1 }.take(200),
"musicList" to act.filter { it.kind == 2 }.take(200)
)
) }
}