mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add last user activity on profile page
This commit is contained in:
parent
9c9dc5b5a4
commit
cc6c68957c
5 changed files with 43 additions and 5 deletions
|
|
@ -57,7 +57,7 @@ class UserController extends AbstractController
|
|||
return $this->render(
|
||||
'default/user/dashboard.html.twig',
|
||||
[
|
||||
'activities' => $activityService->findLastEvents(
|
||||
'activities' => $activityService->findLastActivities(
|
||||
$user->getEvents()
|
||||
)
|
||||
]
|
||||
|
|
@ -254,8 +254,12 @@ class UserController extends AbstractController
|
|||
$userTarget->getId()
|
||||
)
|
||||
],
|
||||
'activities' => $activityService->findLastActivitiesByUserId(
|
||||
$userTarget->getId(),
|
||||
$userTarget->getEvents()
|
||||
)
|
||||
],
|
||||
'events' => $activityService->getEventsTree()
|
||||
'events' => $activityService->getEventsTree(),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue