Private
Public Access
1
0

chg: usr: add filter to the Profile page's recent plays and an infite list too #7

This commit is contained in:
2026-04-19 22:11:58 +02:00
parent e0495d182e
commit 5f856e4d70
4 changed files with 120 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ class ProfileController extends AbstractController
'blindHits' => $bonus['totalBlindHits'],
'edgeMines' => $bonus['totalEdgeMines'],
],
'recent' => ($recent = $this->repo->findRecentFinishedForUser($user)),
'recent' => ($recent = $this->repo->findRecentFinishedForUser($user, 30)),
'gamesData' => array_map(function (PlayedGame $game) use ($userId, $cacheManager): array {
$isRed = $game->getRed()?->getId() === $userId;
$resign = $game->getResign();