diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2023-11-06 09:25:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 09:25:16 -0800 |
commit | 045e1528bd7012dd1bdd4cc39563fbce6fa70501 (patch) | |
tree | 472fc9eb66e19ab0fc5ca1e6a6eea58facd1896b /core | |
parent | f412c8d8c91ef341dd4e7fbfb519b8b8ef04b8fe (diff) | |
parent | 7f530d22e14fbaa86141c875cdad094225f513b7 (diff) | |
download | nextcloud-server-045e1528bd7012dd1bdd4cc39563fbce6fa70501.tar.gz nextcloud-server-045e1528bd7012dd1bdd4cc39563fbce6fa70501.zip |
Merge pull request #41251 from nextcloud/fix/profile-active
fix: Only highlight profile entry when viewing own profile
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/ProfilePageController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Controller/ProfilePageController.php b/core/Controller/ProfilePageController.php index f8d9053edfa..e32f54a8ff7 100644 --- a/core/Controller/ProfilePageController.php +++ b/core/Controller/ProfilePageController.php @@ -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)); |