chg: usr: add filter to the Profile page's recent plays and an infite list too #7
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user