mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #41251 from nextcloud/fix/profile-active
fix: Only highlight profile entry when viewing own profile
This commit is contained in:
commit
045e1528bd
1 changed files with 3 additions and 1 deletions
|
|
@ -106,7 +106,9 @@ class ProfilePageController extends Controller {
|
|||
$this->profileManager->getProfileFields($targetUser, $visitingUser),
|
||||
);
|
||||
|
||||
$this->navigationManager->setActiveEntry('profile');
|
||||
if ($targetUser === $visitingUser) {
|
||||
$this->navigationManager->setActiveEntry('profile');
|
||||
}
|
||||
|
||||
$this->eventDispatcher->dispatchTyped(new BeforeTemplateRenderedEvent($targetUserId));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue